pub type PeerIdUpdateCallback = Box<dyn Fn(&ID) -> bool + Sync + Send>;
The callback of the peer id change. The second argument is the next counter for the peer.
struct PeerIdUpdateCallback(/* private fields */);