[−][src]Enum libp2p_core::nodes::node::NodeEvent
Event that can happen on the NodeStream.
Variants
InboundSubstreamA new inbound substream arrived.
Fields of InboundSubstream
substream: Substream<TMuxer>The newly-opened substream.
OutboundSubstreamAn outbound substream has successfully been opened.
Fields of OutboundSubstream
user_data: TUserDataUser data that has been passed to the open_substream method.
substream: Substream<TMuxer>The newly-opened substream.
OutboundClosedAn outbound substream couldn't be opened because the muxer is no longer capable of opening more substreams.
Fields of OutboundClosed
InboundClosedThe inbound side of the muxer has been closed. No more inbound substreams will be produced.
Trait Implementations
impl<TMuxer, TUserData> Debug for NodeEvent<TMuxer, TUserData> where
TMuxer: StreamMuxer,
TMuxer::Substream: Debug,
TUserData: Debug, [src]
impl<TMuxer, TUserData> Debug for NodeEvent<TMuxer, TUserData> where
TMuxer: StreamMuxer,
TMuxer::Substream: Debug,
TUserData: Debug, Auto Trait Implementations
impl<TMuxer, TUserData> Send for NodeEvent<TMuxer, TUserData> where
TMuxer: Send + Sync,
TUserData: Send,
<TMuxer as StreamMuxer>::Substream: Send,
impl<TMuxer, TUserData> Send for NodeEvent<TMuxer, TUserData> where
TMuxer: Send + Sync,
TUserData: Send,
<TMuxer as StreamMuxer>::Substream: Send, impl<TMuxer, TUserData> Sync for NodeEvent<TMuxer, TUserData> where
TMuxer: Send + Sync,
TUserData: Sync,
<TMuxer as StreamMuxer>::Substream: Sync,
impl<TMuxer, TUserData> Sync for NodeEvent<TMuxer, TUserData> where
TMuxer: Send + Sync,
TUserData: Sync,
<TMuxer as StreamMuxer>::Substream: Sync, Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
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]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
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> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> Same for T
impl<T> Same for Ttype Output = T
Should always be Self
impl<T> Erased for T
impl<T> Erased for T