pub enum ConnectionEvent {
NotifyObservedAddress {
local_address: SocketAddr,
observed_address: SocketAddr,
},
NotifyRemoteAddressAdded {
address: SocketAddr,
sequence_number: u64,
},
PathValidated {
local_address: SocketAddr,
remote_address: SocketAddr,
},
NotifyRemoteAddressRemoved {
sequence_number: u64,
},
}Expand description
Events that can occur on a connection.
Variants§
NotifyObservedAddress
A new observed address has been detected.
NotifyRemoteAddressAdded
A new remote address has been added.
PathValidated
A path has been validated.
NotifyRemoteAddressRemoved
A remote address has been removed.
Trait Implementations§
Source§impl Clone for ConnectionEvent
impl Clone for ConnectionEvent
Source§fn clone(&self) -> ConnectionEvent
fn clone(&self) -> ConnectionEvent
Returns a duplicate 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 moreSource§impl Debug for ConnectionEvent
impl Debug for ConnectionEvent
Source§impl PartialEq for ConnectionEvent
impl PartialEq for ConnectionEvent
impl Eq for ConnectionEvent
impl StructuralPartialEq for ConnectionEvent
Auto Trait Implementations§
impl Freeze for ConnectionEvent
impl RefUnwindSafe for ConnectionEvent
impl Send for ConnectionEvent
impl Sync for ConnectionEvent
impl Unpin for ConnectionEvent
impl UnwindSafe for ConnectionEvent
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