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