[−][src]Enum libp2p_core::nodes::collection::CollectionEvent
Event that can happen on the CollectionStream.
Variants
NodeReached(CollectionReachEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr, TUserData, TPeerId>)A connection to a node has succeeded. You must use the provided event in order to accept the connection.
NodeClosedA connection to a node has been closed.
This happens once both the inbound and outbound channels are closed, and no more outbound substream attempt is pending.
Fields of NodeClosed
NodeErrorA connection to a node has errored.
Can only happen after a node has been successfully reached.
Fields of NodeError
peer_id: TPeerIdIdentifier of the node.
error: HandledNodeError<THandlerErr>The error that happened.
user_data: TUserDataUser data that was passed when accepting.
ReachErrorAn error happened on the future that was trying to reach a node.
Fields of ReachError
id: ReachAttemptIdIdentifier of the reach attempt that failed.
error: TReachErrError that happened on the future.
handler: THandlerThe handler that was passed to add_reach_attempt.
NodeEventA node has produced an event.
Fields of NodeEvent
peer: PeerMut<'a, TInEvent, TUserData, TPeerId>The node that has generated the event.
event: TOutEventThe produced event.
Trait Implementations
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr, TUserData, TPeerId> Debug for CollectionEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr, TUserData, TPeerId> where
TOutEvent: Debug,
TReachErr: Debug,
THandlerErr: Debug,
TPeerId: Eq + Hash + Clone + Debug,
TUserData: Debug, [src]
TOutEvent: Debug,
TReachErr: Debug,
THandlerErr: Debug,
TPeerId: Eq + Hash + Clone + Debug,
TUserData: Debug,
Auto Trait Implementations
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr, TUserData, TPeerId> !Send for CollectionEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr, TUserData, TPeerId>
impl<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr, TUserData, TPeerId> !Sync for CollectionEvent<'a, TInEvent, TOutEvent, THandler, TReachErr, THandlerErr, TUserData, TPeerId>
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Same for T
type Output = T
Should always be Self