[−][src]Struct ethcontract::transaction::confirm::ConfirmParams
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]
fn clone(&self) -> ConfirmParams
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConfirmParams
[src]
impl Default for ConfirmParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for ConfirmParams
impl Send for ConfirmParams
impl Sync for ConfirmParams
impl Unpin for ConfirmParams
impl UnwindSafe for ConfirmParams
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,