[−][src]Struct libp2p_mplex::Multiplex
Multiplexer. Implements the StreamMuxer
trait.
Trait Implementations
impl<C> StreamMuxer for Multiplex<C> where
C: AsyncRead + AsyncWrite,
[src]
C: AsyncRead + AsyncWrite,
type Substream = Substream
Type of the object that represents the raw substream where data can be read and written.
type OutboundSubstream = OutboundSubstream
Future that will be resolved when the outgoing substream is open.
type Error = IoError
Error type of the muxer
fn poll_inbound(&self) -> Poll<Self::Substream, IoError>
[src]
fn open_outbound(&self) -> Self::OutboundSubstream
[src]
fn poll_outbound(
&self,
substream: &mut Self::OutboundSubstream
) -> Poll<Self::Substream, IoError>
[src]
&self,
substream: &mut Self::OutboundSubstream
) -> Poll<Self::Substream, IoError>
fn destroy_outbound(&self, _substream: Self::OutboundSubstream)
[src]
unsafe fn prepare_uninitialized_buffer(&self, _: &mut [u8]) -> bool
[src]
fn read_substream(
&self,
substream: &mut Self::Substream,
buf: &mut [u8]
) -> Poll<usize, IoError>
[src]
&self,
substream: &mut Self::Substream,
buf: &mut [u8]
) -> Poll<usize, IoError>
fn write_substream(
&self,
substream: &mut Self::Substream,
buf: &[u8]
) -> Poll<usize, IoError>
[src]
&self,
substream: &mut Self::Substream,
buf: &[u8]
) -> Poll<usize, IoError>
fn flush_substream(&self, _substream: &mut Self::Substream) -> Poll<(), IoError>
[src]
fn shutdown_substream(&self, sub: &mut Self::Substream) -> Poll<(), IoError>
[src]
fn destroy_substream(&self, sub: Self::Substream)
[src]
fn is_remote_acknowledged(&self) -> bool
[src]
fn close(&self) -> Poll<(), IoError>
[src]
fn flush_all(&self) -> Poll<(), IoError>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self