[−][src]Struct libp2p::yamux::Yamux
Methods
impl<C> Yamux<C> where
C: AsyncRead + AsyncWrite + 'static,
[src]
C: AsyncRead + AsyncWrite + 'static,
Trait Implementations
impl<C> StreamMuxer for Yamux<C> where
C: AsyncRead + AsyncWrite + 'static,
[src]
C: AsyncRead + AsyncWrite + 'static,
type Substream = StreamHandle<C>
Type of the object that represents the raw substream where data can be read and written.
type OutboundSubstream = FutureResult<Option<<Yamux<C> as StreamMuxer>::Substream>, Error>
Future that will be resolved when the outgoing substream is open.
type Error = Error
Error type of the muxer
fn poll_inbound(
&self
) -> Result<Async<<Yamux<C> as StreamMuxer>::Substream>, Error>
[src]
&self
) -> Result<Async<<Yamux<C> as StreamMuxer>::Substream>, Error>
fn open_outbound(&self) -> <Yamux<C> as StreamMuxer>::OutboundSubstream
[src]
fn poll_outbound(
&self,
substream: &mut <Yamux<C> as StreamMuxer>::OutboundSubstream
) -> Result<Async<<Yamux<C> as StreamMuxer>::Substream>, Error>
[src]
&self,
substream: &mut <Yamux<C> as StreamMuxer>::OutboundSubstream
) -> Result<Async<<Yamux<C> as StreamMuxer>::Substream>, Error>
fn destroy_outbound(&self, <Yamux<C> as StreamMuxer>::OutboundSubstream)
[src]
unsafe fn prepare_uninitialized_buffer(&self, &mut [u8]) -> bool
[src]
fn read_substream(
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream,
buf: &mut [u8]
) -> Result<Async<usize>, Error>
[src]
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream,
buf: &mut [u8]
) -> Result<Async<usize>, Error>
fn write_substream(
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream,
buf: &[u8]
) -> Result<Async<usize>, Error>
[src]
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream,
buf: &[u8]
) -> Result<Async<usize>, Error>
fn flush_substream(
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
[src]
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
fn shutdown_substream(
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
[src]
&self,
sub: &mut <Yamux<C> as StreamMuxer>::Substream
) -> Result<Async<()>, Error>
fn destroy_substream(&self, <Yamux<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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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
impl<T> Erased for T
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
T: Any,