pub struct PendingTransactionConfig { /* private fields */ }
Expand description
Configuration for watching a pending transaction.
This type can be used to create a PendingTransactionBuilder
, but in general it is only used
internally.
Implementations§
source§impl PendingTransactionConfig
impl PendingTransactionConfig
sourcepub fn set_tx_hash(&mut self, tx_hash: TxHash)
pub fn set_tx_hash(&mut self, tx_hash: TxHash)
Sets the transaction hash.
sourcepub const fn with_tx_hash(self, tx_hash: TxHash) -> Self
pub const fn with_tx_hash(self, tx_hash: TxHash) -> Self
Sets the transaction hash.
sourcepub const fn required_confirmations(&self) -> u64
pub const fn required_confirmations(&self) -> u64
Returns the number of confirmations to wait for.
sourcepub fn set_required_confirmations(&mut self, confirmations: u64)
pub fn set_required_confirmations(&mut self, confirmations: u64)
Sets the number of confirmations to wait for.
sourcepub const fn with_required_confirmations(self, confirmations: u64) -> Self
pub const fn with_required_confirmations(self, confirmations: u64) -> Self
Sets the number of confirmations to wait for.
sourcepub fn set_timeout(&mut self, timeout: Option<Duration>)
pub fn set_timeout(&mut self, timeout: Option<Duration>)
Sets the timeout.
sourcepub const fn with_timeout(self, timeout: Option<Duration>) -> Self
pub const fn with_timeout(self, timeout: Option<Duration>) -> Self
Sets the timeout.
sourcepub const fn with_provider<T: Transport + Clone, N: Network>(
self,
provider: RootProvider<T, N>,
) -> PendingTransactionBuilder<T, N>
pub const fn with_provider<T: Transport + Clone, N: Network>( self, provider: RootProvider<T, N>, ) -> PendingTransactionBuilder<T, N>
Wraps this configuration with a provider to expose watching methods.
Trait Implementations§
source§impl Clone for PendingTransactionConfig
impl Clone for PendingTransactionConfig
source§fn clone(&self) -> PendingTransactionConfig
fn clone(&self) -> PendingTransactionConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PendingTransactionConfig
impl RefUnwindSafe for PendingTransactionConfig
impl Send for PendingTransactionConfig
impl Sync for PendingTransactionConfig
impl Unpin for PendingTransactionConfig
impl UnwindSafe for PendingTransactionConfig
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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