sc_network::peer_store

Trait ProtocolHandle

Source
pub trait ProtocolHandle:
    Debug
    + Send
    + Sync {
    // Required method
    fn disconnect_peer(&self, peer_id: PeerId);
}
Expand description

Trait describing the required functionality from a Peerset handle.

Required Methods§

Source

fn disconnect_peer(&self, peer_id: PeerId)

Disconnect peer.

Implementors§