NotificationHandler

Trait NotificationHandler 

Source
pub trait NotificationHandler<P: Protocol>:
    Send
    + Sync
    + 'static {
    // Required method
    fn notify(&self, peer_id: PeerId, notification: P::Request) -> Result<()>;
}

Required Methods§

Source

fn notify(&self, peer_id: PeerId, notification: P::Request) -> Result<()>

Implementors§