PeerIdUpdateCallback

Type Alias PeerIdUpdateCallback 

Source
pub type PeerIdUpdateCallback = Box<dyn Fn(&ID) -> bool + Send + Sync>;
Expand description

The callback of the peer id change. The second argument is the next counter for the peer.

Aliased Typeยง

pub struct PeerIdUpdateCallback(/* private fields */);