Struct libp2p::swarm::behaviour::NewExternalAddr
source · pub struct NewExternalAddr<'a> {
pub addr: &'a Multiaddr,
}
Expand description
FromSwarm
variant that informs the behaviour
that we have discovered a new external address for us.
Fields§
§addr: &'a Multiaddr
Trait Implementations§
source§impl<'a> Clone for NewExternalAddr<'a>
impl<'a> Clone for NewExternalAddr<'a>
source§fn clone(&self) -> NewExternalAddr<'a>
fn clone(&self) -> NewExternalAddr<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<'a> Copy for NewExternalAddr<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NewExternalAddr<'a>
impl<'a> Send for NewExternalAddr<'a>
impl<'a> Sync for NewExternalAddr<'a>
impl<'a> Unpin for NewExternalAddr<'a>
impl<'a> UnwindSafe for NewExternalAddr<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more