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 dial peers whose id wasn’t pre-shared.
Trait Implementations§
Source§impl Clone for PeerConnectionEvent
impl Clone for PeerConnectionEvent
Auto 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