Type Alias PeerIdUpdateCallback

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

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

Aliased Typeยง

struct PeerIdUpdateCallback(/* private fields */);