ic_web3_rs::confirm

Trait ConfirmationCheck

Source
pub trait ConfirmationCheck {
    type Check: Future<Output = Result<Option<U64>>>;

    // Required method
    fn check(&self) -> Self::Check;
}
Expand description

Checks whether an event has been confirmed.

Required Associated Types§

Source

type Check: Future<Output = Result<Option<U64>>>

Future resolved when is known whether an event has been confirmed.

Required Methods§

Source

fn check(&self) -> Self::Check

Should be called to get future which resolves when confirmation state is known.

Implementors§

Source§

impl<F, T> ConfirmationCheck for F
where F: Fn() -> T, T: Future<Output = Result<Option<U64>>>,

Source§

type Check = T