pub struct MonitorBuilder { /* private fields */ }
Expand description
Builder for creating test Monitor instances
Implementations§
Source§impl MonitorBuilder
impl MonitorBuilder
pub fn new() -> Self
pub fn name(self, name: &str) -> Self
pub fn networks(self, networks: Vec<String>) -> Self
pub fn paused(self, paused: bool) -> Self
pub fn address(self, address: &str) -> Self
pub fn addresses(self, addresses: Vec<String>) -> Self
pub fn add_address(self, address: &str) -> Self
pub fn address_with_spec(self, address: &str, spec: ContractSpec) -> Self
pub fn addresses_with_spec( self, addresses: Vec<(String, Option<ContractSpec>)>, ) -> Self
pub fn function(self, signature: &str, expression: Option<String>) -> Self
pub fn event(self, signature: &str, expression: Option<String>) -> Self
pub fn transaction( self, status: TransactionStatus, expression: Option<String>, ) -> Self
pub fn trigger_condition( self, script_path: &str, timeout_ms: u32, language: ScriptLanguage, arguments: Option<Vec<String>>, ) -> Self
pub fn triggers(self, triggers: Vec<String>) -> Self
pub fn match_conditions(self, match_conditions: MatchConditions) -> Self
pub fn build(self) -> Monitor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MonitorBuilder
impl RefUnwindSafe for MonitorBuilder
impl Send for MonitorBuilder
impl Sync for MonitorBuilder
impl Unpin for MonitorBuilder
impl UnwindSafe for MonitorBuilder
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