pub struct MonitorExecutionConfig<M: MonitorRepositoryTrait<N, TR>, N: NetworkRepositoryTrait + Send + Sync + 'static, TR: TriggerRepositoryTrait + Send + Sync + 'static, CP: ClientPoolTrait + Send + Sync + 'static> {
pub path: String,
pub network_slug: Option<String>,
pub block_number: Option<u64>,
pub monitor_service: Arc<Mutex<MonitorService<M, N, TR>>>,
pub network_service: Arc<Mutex<NetworkService<N>>>,
pub filter_service: Arc<FilterService>,
pub trigger_execution_service: Arc<TriggerExecutionService<TR>>,
pub active_monitors_trigger_scripts: HashMap<String, (ScriptLanguage, String)>,
pub client_pool: Arc<CP>,
}Expand description
Configuration for executing a monitor
§Arguments
path- The path to the monitor to executenetwork_slug- The network slug to execute the monitor againstblock_number- The block number to execute the monitor againstmonitor_service- The monitor service to usenetwork_service- The network service to usefilter_service- The filter service to usetrigger_execution_service- The trigger execution service to useactive_monitors_trigger_scripts- The active monitors trigger scripts to useclient_pool- The client pool to use
Fields§
§path: String§network_slug: Option<String>§block_number: Option<u64>§monitor_service: Arc<Mutex<MonitorService<M, N, TR>>>§network_service: Arc<Mutex<NetworkService<N>>>§filter_service: Arc<FilterService>§trigger_execution_service: Arc<TriggerExecutionService<TR>>§active_monitors_trigger_scripts: HashMap<String, (ScriptLanguage, String)>§client_pool: Arc<CP>Auto Trait Implementations§
impl<M, N, TR, CP> Freeze for MonitorExecutionConfig<M, N, TR, CP>
impl<M, N, TR, CP> !RefUnwindSafe for MonitorExecutionConfig<M, N, TR, CP>
impl<M, N, TR, CP> Send for MonitorExecutionConfig<M, N, TR, CP>
impl<M, N, TR, CP> Sync for MonitorExecutionConfig<M, N, TR, CP>
impl<M, N, TR, CP> Unpin for MonitorExecutionConfig<M, N, TR, CP>
impl<M, N, TR, CP> !UnwindSafe for MonitorExecutionConfig<M, N, TR, CP>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more