Trait SubscribeEvents

Source
pub trait SubscribeEvents {
    type Client: Subscribe;
    type Hash: DeserializeOwned;

    // Required method
    fn subscribe_events<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<EventSubscriptionFor<Self::Client, Self::Hash>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn subscribe_events<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<EventSubscriptionFor<Self::Client, Self::Hash>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Subscribe to events.

Implementors§

Source§

impl<T, Client> SubscribeEvents for Api<T, Client>
where T: Config, Client: Subscribe,

Source§

type Client = Client

Source§

type Hash = <T as Config>::Hash