pub enum PeerConnectionEvent {
Connected(PeerID),
Disconnected(PeerID),
ConnectFailed(Option<PeerID>),
}Expand description
Connection lifecycle events the Node forwards to discovery.
Variants§
Connected(PeerID)
Outbound connection completed handshake successfully.
Disconnected(PeerID)
Previously-connected peer has disconnected.
ConnectFailed(Option<PeerID>)
Connection attempt failed. Peer id may be unknown for manual peer endpoints whose id wasn’t pre-shared.
Trait Implementations§
Source§impl Clone for PeerConnectionEvent
impl Clone for PeerConnectionEvent
Source§fn clone(&self) -> PeerConnectionEvent
fn clone(&self) -> PeerConnectionEvent
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 PeerConnectionEvent
impl RefUnwindSafe for PeerConnectionEvent
impl Send for PeerConnectionEvent
impl Sync for PeerConnectionEvent
impl Unpin for PeerConnectionEvent
impl UnsafeUnpin for PeerConnectionEvent
impl UnwindSafe for PeerConnectionEvent
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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