pub struct Multiplex<C> { /* private fields */ }
Expand description
Multiplexer. Implements the StreamMuxer
trait.
Trait Implementations§
source§impl<C> StreamMuxer for Multiplex<C>where
C: AsyncRead + AsyncWrite + Unpin,
impl<C> StreamMuxer for Multiplex<C>where C: AsyncRead + AsyncWrite + Unpin,
§type Substream = Substream<C>
type Substream = Substream<C>
Type of the object that represents the raw substream where data can be read and written.
source§fn poll_inbound(
self: Pin<&mut Multiplex<C>>,
cx: &mut Context<'_>
) -> Poll<Result<<Multiplex<C> as StreamMuxer>::Substream, <Multiplex<C> as StreamMuxer>::Error>>
fn poll_inbound( self: Pin<&mut Multiplex<C>>, cx: &mut Context<'_> ) -> Poll<Result<<Multiplex<C> as StreamMuxer>::Substream, <Multiplex<C> as StreamMuxer>::Error>>
Poll for new inbound substreams. Read more
source§fn poll_outbound(
self: Pin<&mut Multiplex<C>>,
cx: &mut Context<'_>
) -> Poll<Result<<Multiplex<C> as StreamMuxer>::Substream, <Multiplex<C> as StreamMuxer>::Error>>
fn poll_outbound( self: Pin<&mut Multiplex<C>>, cx: &mut Context<'_> ) -> Poll<Result<<Multiplex<C> as StreamMuxer>::Substream, <Multiplex<C> as StreamMuxer>::Error>>
Poll for a new, outbound substream.
Auto Trait Implementations§
impl<C> !RefUnwindSafe for Multiplex<C>
impl<C> Send for Multiplex<C>where C: Send,
impl<C> Sync for Multiplex<C>where C: Send,
impl<C> Unpin for Multiplex<C>
impl<C> !UnwindSafe for Multiplex<C>
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