dash_sdk::platform::transition::waitable

Trait Waitable

source
pub trait Waitable: Sized {
    // Required method
    fn wait_for_response<'life0, 'async_trait>(
        sdk: &'life0 Sdk,
        state_transition: StateTransition,
        settings: Option<PutSettings>,
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Waitable trait provides a wait to wait for a response of a state transition after it has been broadcast and receive altered objects.

This is simple conveniance trait wrapping the BroadcastStateTransition::wait_for_response method.

Required Methods§

source

fn wait_for_response<'life0, 'async_trait>( sdk: &'life0 Sdk, state_transition: StateTransition, settings: Option<PutSettings>, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Waitable for Vote

source§

fn wait_for_response<'life0, 'async_trait>( sdk: &'life0 Sdk, state_transition: StateTransition, settings: Option<PutSettings>, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§