Enum litep2p::Litep2pEvent
source · pub enum Litep2pEvent {
ConnectionEstablished {
peer: PeerId,
endpoint: Endpoint,
},
ConnectionClosed {
peer: PeerId,
connection_id: ConnectionId,
},
DialFailure {
address: Multiaddr,
error: Error,
},
}
Expand description
Litep2p events.
Variants§
ConnectionEstablished
Connection established to peer.
ConnectionClosed
Connection closed to remote peer.
DialFailure
Failed to dial peer.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Litep2pEvent
impl !RefUnwindSafe for Litep2pEvent
impl Send for Litep2pEvent
impl Sync for Litep2pEvent
impl Unpin for Litep2pEvent
impl !UnwindSafe for Litep2pEvent
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§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