Structs§
- Item
Timeout Err - Stream
With Finalization Callback - A Stream wrapper that calls a closure once the Stream either ends or is cancelled:
- Stream
With Finalization Callbacks - A Stream wrapper that can call two different closures:
- Stream
With Item Timeout - A Stream wrapper that will yield a timeout error if an item is not generated
within a maximum specified time, closing the Stream in the next
.poll()
Traits§
- Stream
ExtClose OnItem Timeout - The extension trait that adds
.close_stream_on_item_timeout(max_duration_for_next_element)
to allStream
s. - Stream
ExtFinalization Callback - The extension trait that adds
.on_complete_or_cancellation(...)
to allStream
s. - Stream
ExtFinalization Callbacks - The extension trait that adds
.on_complete(...)
and.on_cancellation(...)
to allStream
s. - TryCount
Ext - TryEnumerate
AllExt - TryEnumerate
Ext
Functions§
- throttle_
stream - Takes the
input_stream
and the frequencyelements_per_second
and give out a stream with the same elements, but restricted at yielding elements in that frequency, at most.