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 more