Function gain::peerindex::principal::register[][src]

pub async fn register(listener: Box<dyn Fn(&str, &str)>)
Expand description

Register this program instance in the index. The listener is invoked when a peer tries to connect and there isn’t an ongoing connection process with that peer.