pub enum SimpleConnectionEvent {
AttemptStarted {
peer_id: PeerId,
},
DirectConnectionTried {
peer_id: PeerId,
address: SocketAddr,
},
CandidateDiscoveryStarted {
peer_id: PeerId,
},
NatTraversalStarted {
peer_id: PeerId,
},
ConnectionEstablished {
peer_id: PeerId,
address: SocketAddr,
},
ConnectionFailed {
peer_id: PeerId,
error: String,
},
}Expand description
Simplified events
Variants§
AttemptStarted
DirectConnectionTried
CandidateDiscoveryStarted
NatTraversalStarted
ConnectionEstablished
ConnectionFailed
Trait Implementations§
Source§impl Clone for SimpleConnectionEvent
impl Clone for SimpleConnectionEvent
Source§fn clone(&self) -> SimpleConnectionEvent
fn clone(&self) -> SimpleConnectionEvent
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 moreAuto Trait Implementations§
impl Freeze for SimpleConnectionEvent
impl RefUnwindSafe for SimpleConnectionEvent
impl Send for SimpleConnectionEvent
impl Sync for SimpleConnectionEvent
impl Unpin for SimpleConnectionEvent
impl UnwindSafe for SimpleConnectionEvent
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