[][src]Struct ethcontract::transaction::confirm::ConfirmParams

pub struct ConfirmParams {
    pub confirmations: usize,
    pub poll_interval: Duration,
    pub block_timeout: Option<usize>,
}

A struct with the confirmation parameters.

Fields

confirmations: usize

The number of blocks to confirm the transaction with. This is the number of blocks mined on top of the block where the transaction was mined. This means that, for example, to just wait for the transaction to be mined, then the number of confirmations should be 0. Positive non-zero values indicate that extra blocks should be waited for on top of the block where the transaction was mined.

poll_interval: Duration

The polling interval. This is used as the interval between consecutive eth_getFilterChanges calls to get filter updates, or the interval to wait between confirmation checks in case filters are not supported by the node (for example when using Infura over HTTP(S)).

block_timeout: Option<usize>

The maximum number of blocks to wait for a transaction to get confirmed.

Methods

impl ConfirmParams[src]

pub fn mined() -> Self[src]

Create new confirmation parameters for just confirming that the transaction was mined but not confirmed with any extra blocks.

pub fn with_confirmations(count: usize) -> Self[src]

Create new confirmation parameters from the specified number of extra blocks to wait for with the default poll interval.

Trait Implementations

impl Clone for ConfirmParams[src]

impl Debug for ConfirmParams[src]

impl Default for ConfirmParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,