Crate stream_window

source ·
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

  • Wrappers for actual window implementations, as an extension trait.

Functions

  • Periodic window, waits till window of specified size is filled, emits, and starts a new window on a clock tick.
  • Sliding window, waits till window of specified size is filled, emits, and slides down by one element.
  • Tumbling window, waits till window of specified size is filled, emits, and starts a new window.