[−][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]
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,
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,
TMuxer: Send + Sync,
TUserData: Sync,
<TMuxer as StreamMuxer>::Substream: Sync,
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 = !
🔬 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]
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
🔬 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> Same for T
type Output = T
Should always be Self