Expand description
Stream windows build on top of async streams. Implementations offered:
- tumbling window, waits till window of specified size is filled, emits, and starts a new window
- sliding window, waits till window of specified size is filled, emits, and slides down by one element
- periodic window, waits till window of specified size is filled, emits, and starts a new window on a clock tick
Traits§
- Window
Ext - Wrappers for actual window implementations, as an extension trait.
Functions§
- to_
periodic_ window - Periodic window, waits till window of specified size is filled, emits, and starts a new window on a clock tick.
- to_
sliding_ window - Sliding window, waits till window of specified size is filled, emits, and slides down by one element.
- to_
tumbling_ window - Tumbling window, waits till window of specified size is filled, emits, and starts a new window.