Trait sc_network_sync::types::SyncEventStream

source ·
pub trait SyncEventStream: Send + Sync {
    // Required method
    fn event_stream(
        &self,
        name: &'static str,
    ) -> Pin<Box<dyn Stream<Item = SyncEvent> + Send>>;
}

Required Methods§

source

fn event_stream( &self, name: &'static str, ) -> Pin<Box<dyn Stream<Item = SyncEvent> + Send>>

Subscribe to syncing-related events.

Implementations on Foreign Types§

source§

impl<T> SyncEventStream for Arc<T>
where T: ?Sized + SyncEventStream,

source§

fn event_stream( &self, name: &'static str, ) -> Pin<Box<dyn Stream<Item = SyncEvent> + Send>>

Implementors§