Enum litep2p::Litep2pEvent
source · pub enum Litep2pEvent {
ConnectionEstablished {
peer: PeerId,
endpoint: Endpoint,
},
ConnectionClosed {
peer: PeerId,
connection_id: ConnectionId,
},
DialFailure {
address: Multiaddr,
error: DialError,
},
ListDialFailures {
errors: Vec<(Multiaddr, DialError)>,
},
}
Expand description
Litep2p events.
Variants§
ConnectionEstablished
Connection established to peer.
ConnectionClosed
Connection closed to remote peer.
DialFailure
Failed to dial peer.
This error can originate from dialing a single peer address.
ListDialFailures
A list of multiple dial failures.
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<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