Skip to main content

Module stream

Module stream 

Source
Expand description

Stream processing utilities Infrastructure supporting converting a collection of PeerId split libp2p_stream managed individual peer-to-peer libp2p::swarm::Streams.

Structsยง

PeerSink ๐Ÿ”’
Per-peer egress buffer: a bounded MPSC crossfire channel.
StallGuardSink ๐Ÿ”’
A [Sink] adapter that fails the per-peer write pump once the inner sink stops making progress.

Enumsยง

EgressWriteError ๐Ÿ”’
Error produced by the per-peer write pump (StallGuardSink).

Functionsยง

process_stream_protocol
spawn_stream_pumps ๐Ÿ”’
Spawn the write and read pump tasks for an open peer stream.

Type Aliasesยง

PeerStreamCache ๐Ÿ”’