pub struct WaitOpts {
pub timeout: Duration,
pub interval: Duration,
pub wait_for_status: TxStatus,
pub dont_throw_on_revert: bool,
pub ignore_dropped_receipts_for: Duration,
}Expand description
Options controlling wait_for_tx polling behavior.
Fields§
§timeout: DurationTotal timeout for the polling operation.
interval: DurationInterval between retries.
wait_for_status: TxStatusMinimum status to wait for.
dont_throw_on_revert: boolIf true, accept a reverted tx receipt without returning an error.
ignore_dropped_receipts_for: DurationDuration to ignore TxStatus::Dropped before treating it as failure.
Avoids race conditions where a tx briefly appears dropped before inclusion.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitOpts
impl RefUnwindSafe for WaitOpts
impl Send for WaitOpts
impl Sync for WaitOpts
impl Unpin for WaitOpts
impl UnwindSafe for WaitOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> 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