Skip to main content

Module stream_ext

Module stream_ext 

Source
Expand description

Tools for dealing with streams

Structs§

Breaker
Return type of StreamExt::breaker
SyncStream
A Send + Sync stream of T, fed over a channel by a pump (a future) running on the source’s thread — letting a !Send source stream be consumed where Send/Sync is required.
Truncated
Marks that a SyncStream was cut short: its pump (or source) was dropped before the source finished, so the Ok items before it are only a prefix of the source. By contract it is the final item the stream yields — nothing follows it.
UntilOverriddenBy
Return type of StreamExt::until_overridden_by.

Traits§

StreamExt
Extension trait for Streams