Module stream
Modules§
- adapters
- Adapters for
Streams created by methods inStreamExt. - codec
- Adaptors from
AsyncRead/AsyncWriteto Stream/Sink - io
- Helpers for IO related tasks.
- json
- ndjson support in rama
- wrappers
- Wrappers for Tokio types that implement
Stream.
Structs§
- Bytes
Freeze - Wraps a duplex
Stream+Sinkthat decodes toBytesMutand acceptsBytesin its sink, exposing a uniformStream<Bytes>+Sink<Bytes>on top. - Elapsed
- Error returned by
TimeoutandTimeoutRepeating. - Empty
- Stream for the
emptyfunction. - Iter
- Stream for the
iterfunction. - Once
- Stream for the
oncefunction. - Pending
- Stream for the
pendingfunction. - Stream
Bridge - Input to
StreamForwardService: the two duplex endpoints to bridge. - Stream
Forward Service - A
Servicewhich takes aStreamBridgeand pumps frames between the two endpoints bidirectionally. - Stream
Map - Combine many streams into one, indexing each source stream with a unique key.
- Stream
Notify Close - A
Streamthat wraps the values in anOption. - Timeout
- Stream returned by the
timeoutmethod.
Enums§
- Bridge
Close Reason - Reason why a rama bridge — byte-oriented (see
IoForwardServiceinrama-net) or frame-oriented (seeStreamForwardService) — terminated.
Traits§
- From
Stream - Convert from a
Stream. - Stream
- A stream of values produced asynchronously.
- Stream
Ext - An extension trait for the
Streamtrait that provides a variety of convenient combinator functions.