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