[][src]Trait sc_client_api::client::BlockchainEvents

pub trait BlockchainEvents<Block: BlockT> {
    pub fn import_notification_stream(&self) -> ImportNotifications<Block>;
pub fn finality_notification_stream(&self) -> FinalityNotifications<Block>;
pub fn storage_changes_notification_stream(
        &self,
        filter_keys: Option<&[StorageKey]>,
        child_filter_keys: Option<&[(StorageKey, Option<Vec<StorageKey>>)]>
    ) -> Result<StorageEventStream<Block::Hash>>; }

A source of blockchain events.

Required methods

pub fn import_notification_stream(&self) -> ImportNotifications<Block>[src]

Get block import event stream. Not guaranteed to be fired for every imported block.

pub fn finality_notification_stream(&self) -> FinalityNotifications<Block>[src]

Get a stream of finality notifications. Not guaranteed to be fired for every finalized block.

pub fn storage_changes_notification_stream(
    &self,
    filter_keys: Option<&[StorageKey]>,
    child_filter_keys: Option<&[(StorageKey, Option<Vec<StorageKey>>)]>
) -> Result<StorageEventStream<Block::Hash>>
[src]

Get storage changes event stream.

Passing None as filter_keys subscribes to all storage changes.

Loading content...

Implementors

Loading content...