[−][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.
fn poll_inbound(
&self
) -> Result<Async<<Multiplex<C> as StreamMuxer>::Substream>, Error>
[src]
&self
) -> Result<Async<<Multiplex<C> as StreamMuxer>::Substream>, Error>
fn open_outbound(&self) -> <Multiplex<C> as StreamMuxer>::OutboundSubstream
[src]
fn poll_outbound(
&self,
substream: &mut <Multiplex<C> as StreamMuxer>::OutboundSubstream
) -> Result<Async<<Multiplex<C> as StreamMuxer>::Substream>, Error>
[src]
&self,
substream: &mut <Multiplex<C> as StreamMuxer>::OutboundSubstream
) -> Result<Async<<Multiplex<C> as StreamMuxer>::Substream>, Error>
fn destroy_outbound(
&self,
_substream: <Multiplex<C> as StreamMuxer>::OutboundSubstream
)
[src]
&self,
_substream: <Multiplex<C> as StreamMuxer>::OutboundSubstream
)
fn read_substream(
&self,
substream: &mut <Multiplex<C> as StreamMuxer>::Substream,
buf: &mut [u8]
) -> Result<Async<usize>, Error>
[src]
&self,
substream: &mut <Multiplex<C> as StreamMuxer>::Substream,
buf: &mut [u8]
) -> Result<Async<usize>, Error>
fn write_substream(
&self,
substream: &mut <Multiplex<C> as StreamMuxer>::Substream,
buf: &[u8]
) -> Result<Async<usize>, Error>
[src]
&self,
substream: &mut <Multiplex<C> as StreamMuxer>::Substream,
buf: &[u8]
) -> Result<Async<usize>, Error>
fn flush_substream(
&self,
_substream: &mut <Multiplex<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
[src]
&self,
_substream: &mut <Multiplex<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
fn shutdown_substream(
&self,
sub: &mut <Multiplex<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
[src]
&self,
sub: &mut <Multiplex<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
fn destroy_substream(&self, sub: <Multiplex<C> as StreamMuxer>::Substream)
[src]
fn is_remote_acknowledged(&self) -> bool
[src]
fn close(&self) -> Result<Async<()>, Error>
[src]
fn flush_all(&self) -> Result<Async<()>, Error>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> 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
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
impl<T> Erased for T
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
T: Any,