Struct libp2p_swarm::behaviour::AddressChange
source · pub struct AddressChange<'a> {
pub peer_id: PeerId,
pub connection_id: ConnectionId,
pub old: &'a ConnectedPoint,
pub new: &'a ConnectedPoint,
}
Expand description
FromSwarm
variant that informs the behaviour that the ConnectedPoint
of an existing
connection has changed.
Fields§
§peer_id: PeerId
§connection_id: ConnectionId
§old: &'a ConnectedPoint
§new: &'a ConnectedPoint
Trait Implementations§
source§impl<'a> Clone for AddressChange<'a>
impl<'a> Clone for AddressChange<'a>
source§fn clone(&self) -> AddressChange<'a>
fn clone(&self) -> AddressChange<'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 AddressChange<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AddressChange<'a>
impl<'a> Send for AddressChange<'a>
impl<'a> Sync for AddressChange<'a>
impl<'a> Unpin for AddressChange<'a>
impl<'a> UnwindSafe for AddressChange<'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