Add NetworkBehaviour::inject_new_external_addr (#1063)

This commit is contained in:
Pierre Krieger
2019-04-16 17:00:20 +02:00
committed by GitHub
parent bee5c58b27
commit a953b613cf
4 changed files with 28 additions and 0 deletions

View File

@ -89,6 +89,10 @@ pub trait NetworkBehaviour {
fn inject_expired_listen_addr(&mut self, _addr: &Multiaddr) {
}
/// Indicates to the behaviour that we have discovered a new external address for us.
fn inject_new_external_addr(&mut self, _addr: &Multiaddr) {
}
/// Polls for things that swarm should do.
///
/// This API mimics the API of the `Stream` trait.