Type Alias libp2p_swarm::NegotiatedSubstream
source · pub type NegotiatedSubstream = Stream;
👎Deprecated: The ‘substream’ terminology is deprecated. Use ‘Stream’ instead
Expand description
Substream for which a protocol has been chosen.
Implements the AsyncRead
and AsyncWrite
traits.
Aliased Type§
struct NegotiatedSubstream(/* private fields */);
Trait Implementations
source§impl AsyncRead for Stream
impl AsyncRead for Stream
source§impl AsyncWrite for Stream
impl AsyncWrite for Stream
source§fn poll_write(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
buf: &[u8],
) -> Poll<Result<usize>>
fn poll_write( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], ) -> Poll<Result<usize>>
Attempt to write bytes from
buf
into the object. Read moresource§fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
bufs: &[IoSlice<'_>],
) -> Poll<Result<usize>>
fn poll_write_vectored( self: Pin<&mut Self>, cx: &mut Context<'_>, bufs: &[IoSlice<'_>], ) -> Poll<Result<usize>>
Attempt to write bytes from
bufs
into the object using vectored
IO operations. Read more