Skip to main content

Module stream

Module stream 

Source
Expand description

Stream adapters for synchronous, concurrent, and fallible transformations.

The module extends futures streams with ordered and completion-ordered concurrency, ready closures, aggregation, and result handling.

Modulesยง

band ๐Ÿ”’
broadband ๐Ÿ”’
Broadband stream combinator extensions to futures::Stream
cloned ๐Ÿ”’
expect ๐Ÿ”’
ignore ๐Ÿ”’
iter_stream ๐Ÿ”’
ready ๐Ÿ”’
Synchronous combinator extensions to futures::Stream
tools ๐Ÿ”’
StreamTools for futures::Stream
try_broadband ๐Ÿ”’
Synchronous combinator extensions to futures::TryStream
try_parallel ๐Ÿ”’
Parallelism stream combinator extensions to futures::Stream
try_ready ๐Ÿ”’
Synchronous combinator extensions to futures::TryStream
try_tools ๐Ÿ”’
TryStreamTools for futures::TryStream
try_wideband ๐Ÿ”’
Synchronous combinator extensions to futures::TryStream
wideband ๐Ÿ”’
Wideband stream combinator extensions to futures::Stream

Constantsยง

AMPLIFICATION_LIMIT
Practicable limits on the stream amplifier.
WIDTH_LIMIT
Practicable limits on the stream width.

Traitsยง

BroadbandExt
Adds concurrent transformations with completion-ordered output.
Cloned
Clones items yielded by a stream of shared references.
IterStream
Converts synchronous iterables into immediately ready streams.
ReadyExt
Adds synchronous counterparts to selected [StreamExt] combinators.
Tools
Adds aggregation, sampling, and folding operations to streams.
TryBroadbandExt
Adds bounded concurrent transformations with completion-ordered outputs.
TryExpect
Converts fallible stream items into values by expecting success.
TryIgnore
Selects successful or failed items from a result stream.
TryParallelExt
Adds unordered parallel transformations for fallible streams.
TryReadyExt
Adds synchronous combinators to fallible streams.
TryTools
Adds general-purpose operations to fallible streams.
TryWidebandExt
Adds bounded concurrent transformations with ordered transform results.
WidebandExt
Adds bounded concurrent transformations that preserve stream order.

Functionsยง

automatic_amplification
Used by stream operations where the amplification hasnโ€™t been manually supplied by the caller. Instead we provide a computed value.
automatic_width
Returns the live default concurrency width for stream operations.
set_amplification
Sets the live concurrency amplification. The first return value is the previous width which was replaced. The second return value is the value which was set after any applied limits.
set_width
Sets the live concurrency factor. The first return value is the previous width which was replaced. The second return value is the value which was set after any applied limits.