[−][src]Trait sc_client::BlockchainEvents
A source of blockchain events.
Required methods
fn import_notification_stream(
&self
) -> UnboundedReceiver<BlockImportNotification<Block>>
&self
) -> UnboundedReceiver<BlockImportNotification<Block>>
Get block import event stream. Not guaranteed to be fired for every imported block.
fn finality_notification_stream(
&self
) -> UnboundedReceiver<FinalityNotification<Block>>
&self
) -> UnboundedReceiver<FinalityNotification<Block>>
Get a stream of finality notifications. Not guaranteed to be fired for every finalized block.
fn storage_changes_notification_stream(
&self,
filter_keys: Option<&[StorageKey]>,
child_filter_keys: Option<&[(StorageKey, Option<Vec<StorageKey>>)]>
) -> Result<UnboundedReceiver<(<Block as Block>::Hash, StorageChangeSet)>, Error>
&self,
filter_keys: Option<&[StorageKey]>,
child_filter_keys: Option<&[(StorageKey, Option<Vec<StorageKey>>)]>
) -> Result<UnboundedReceiver<(<Block as Block>::Hash, StorageChangeSet)>, Error>
Get storage changes event stream.
Passing None
as filter_keys
subscribes to all storage changes.
Implementors
impl<B, E, Block, RA> BlockchainEvents<Block> for Client<B, E, Block, RA> where
E: CallExecutor<Block>,
Block: BlockT,
[src]
E: CallExecutor<Block>,
Block: BlockT,
fn import_notification_stream(&self) -> ImportNotifications<Block>
[src]
Get block import event stream.
fn finality_notification_stream(&self) -> FinalityNotifications<Block>
[src]
fn storage_changes_notification_stream(
&self,
filter_keys: Option<&[StorageKey]>,
child_filter_keys: Option<&[(StorageKey, Option<Vec<StorageKey>>)]>
) -> Result<StorageEventStream<Block::Hash>>
[src]
&self,
filter_keys: Option<&[StorageKey]>,
child_filter_keys: Option<&[(StorageKey, Option<Vec<StorageKey>>)]>
) -> Result<StorageEventStream<Block::Hash>>
Get storage changes event stream.