Trait libp2p::core::muxing::StreamMuxerExt
source · pub trait StreamMuxerExt: Sized + StreamMuxer {
// Provided methods
fn poll_inbound_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Substream, Self::Error>>
where Self: Unpin { ... }
fn poll_outbound_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Substream, Self::Error>>
where Self: Unpin { ... }
fn poll_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<StreamMuxerEvent, Self::Error>>
where Self: Unpin { ... }
fn poll_close_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
where Self: Unpin { ... }
fn close(self) -> Close<Self> ⓘ { ... }
}
Expand description
Extension trait for StreamMuxer
.
Provided Methods§
sourcefn poll_inbound_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Substream, Self::Error>>where
Self: Unpin,
fn poll_inbound_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Substream, Self::Error>>where
Self: Unpin,
Convenience function for calling StreamMuxer::poll_inbound
for StreamMuxer
s that are Unpin
.
sourcefn poll_outbound_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Substream, Self::Error>>where
Self: Unpin,
fn poll_outbound_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Self::Substream, Self::Error>>where
Self: Unpin,
Convenience function for calling StreamMuxer::poll_outbound
for StreamMuxer
s that are Unpin
.
sourcefn poll_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<StreamMuxerEvent, Self::Error>>where
Self: Unpin,
fn poll_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<StreamMuxerEvent, Self::Error>>where
Self: Unpin,
Convenience function for calling StreamMuxer::poll
for StreamMuxer
s that are Unpin
.
sourcefn poll_close_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
fn poll_close_unpin(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>where
Self: Unpin,
Convenience function for calling StreamMuxer::poll_close
for StreamMuxer
s that are Unpin
.
sourcefn close(self) -> Close<Self> ⓘ
fn close(self) -> Close<Self> ⓘ
Returns a future for closing this StreamMuxer
.
Object Safety§
This trait is not object safe.