Trait SubscribeState

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

    // Required method
    fn subscribe_state<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        pallet: &'life1 str,
        storage_key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<StorageChangeSetSubscriptionFor<Self::Client, Self::Hash>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn subscribe_state<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, pallet: &'life1 str, storage_key: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<StorageChangeSetSubscriptionFor<Self::Client, Self::Hash>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

Source§

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

Source§

type Client = Client

Source§

type Hash = <T as Config>::Hash