Skip to main content

PeerStream

Type Alias PeerStream 

Source
pub type PeerStream = Compat<Stream>;
Expand description

One logical, bidirectional stream to the peer โ€” a tokio AsyncRead + AsyncWrite. Reads deliver bytes incrementally as they arrive (streaming, with yamux-window backpressure); many PeerStreams coexist on one PeerSession without head-of-line blocking.

yamux streams are futures streams; this is the tokio-trait view via tokio-util compat.

Aliased Typeยง

pub struct PeerStream { /* private fields */ }