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

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

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.