referrerpolicy=no-referrer-when-downgrade

Trait sc_network::peer_store::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§