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§
Sourcefn 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,
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.