Struct libp2p_yamux::Yamux [−][src]
A Yamux connection.
This implementation isn’t capable of detecting when the underlying socket changes its address,
and no StreamMuxerEvent::AddressChange
event is ever emitted.
Implementations
impl<C> Yamux<Incoming<C>> where
C: AsyncRead + AsyncWrite + Send + Unpin + 'static,
[src]
C: AsyncRead + AsyncWrite + Send + Unpin + 'static,
impl<C> Yamux<LocalIncoming<C>> where
C: AsyncRead + AsyncWrite + Unpin + 'static,
[src]
C: AsyncRead + AsyncWrite + Unpin + 'static,
Trait Implementations
impl<S> Debug for Yamux<S>
[src]
impl<S> StreamMuxer for Yamux<S> where
S: Stream<Item = Result<Stream, YamuxError>> + Unpin,
[src]
S: Stream<Item = Result<Stream, YamuxError>> + Unpin,
type Substream = Stream
Type of the object that represents the raw substream where data can be read and written.
type OutboundSubstream = OpenSubstreamToken
Future that will be resolved when the outgoing substream is open.
type Error = YamuxError
Error type of the muxer
fn poll_event(
&self,
c: &mut Context<'_>
) -> Poll<Result<StreamMuxerEvent<Self::Substream>, YamuxError>>
[src]
&self,
c: &mut Context<'_>
) -> Poll<Result<StreamMuxerEvent<Self::Substream>, YamuxError>>
fn open_outbound(&self) -> Self::OutboundSubstream
[src]
fn poll_outbound(
&self,
c: &mut Context<'_>,
_: &mut OpenSubstreamToken
) -> Poll<Result<Self::Substream, YamuxError>>
[src]
&self,
c: &mut Context<'_>,
_: &mut OpenSubstreamToken
) -> Poll<Result<Self::Substream, YamuxError>>
fn destroy_outbound(&self, _: Self::OutboundSubstream)
[src]
fn read_substream(
&self,
c: &mut Context<'_>,
s: &mut Self::Substream,
b: &mut [u8]
) -> Poll<Result<usize, YamuxError>>
[src]
&self,
c: &mut Context<'_>,
s: &mut Self::Substream,
b: &mut [u8]
) -> Poll<Result<usize, YamuxError>>
fn write_substream(
&self,
c: &mut Context<'_>,
s: &mut Self::Substream,
b: &[u8]
) -> Poll<Result<usize, YamuxError>>
[src]
&self,
c: &mut Context<'_>,
s: &mut Self::Substream,
b: &[u8]
) -> Poll<Result<usize, YamuxError>>
fn flush_substream(
&self,
c: &mut Context<'_>,
s: &mut Self::Substream
) -> Poll<Result<(), YamuxError>>
[src]
&self,
c: &mut Context<'_>,
s: &mut Self::Substream
) -> Poll<Result<(), YamuxError>>
fn shutdown_substream(
&self,
c: &mut Context<'_>,
s: &mut Self::Substream
) -> Poll<Result<(), YamuxError>>
[src]
&self,
c: &mut Context<'_>,
s: &mut Self::Substream
) -> Poll<Result<(), YamuxError>>
fn destroy_substream(&self, _: Self::Substream)
[src]
fn close(&self, c: &mut Context<'_>) -> Poll<Result<(), YamuxError>>
[src]
fn flush_all(&self, _: &mut Context<'_>) -> Poll<Result<(), YamuxError>>
[src]
pub fn is_remote_acknowledged(&self) -> bool
[src]
Auto Trait Implementations
impl<S> !RefUnwindSafe for Yamux<S>
impl<S> Send for Yamux<S> where
S: Send,
S: Send,
impl<S> Sync for Yamux<S> where
S: Send,
S: Send,
impl<S> Unpin for Yamux<S> where
S: Unpin,
S: Unpin,
impl<S> !UnwindSafe for Yamux<S>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,