pub struct WindowConfig {
pub window_type: WindowType,
pub allow_lateness: Duration,
pub watermark_delay: Duration,
}Expand description
Configuration for windowed operations
Fields§
§window_type: WindowTypeType of the window
allow_lateness: DurationWhether to allow late arrivals
watermark_delay: DurationWatermark strategy (time to wait before processing)
Implementations§
Source§impl WindowConfig
impl WindowConfig
Sourcepub fn sliding(size: Duration, slide: Duration) -> Self
pub fn sliding(size: Duration, slide: Duration) -> Self
Create a new sliding window configuration
Sourcepub fn with_lateness(self, lateness: Duration) -> Self
pub fn with_lateness(self, lateness: Duration) -> Self
Set the allowed lateness for this window
Sourcepub fn with_watermark_delay(self, delay: Duration) -> Self
pub fn with_watermark_delay(self, delay: Duration) -> Self
Set the watermark delay for this window
Trait Implementations§
Source§impl Clone for WindowConfig
impl Clone for WindowConfig
Source§fn clone(&self) -> WindowConfig
fn clone(&self) -> WindowConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WindowConfig
impl RefUnwindSafe for WindowConfig
impl Send for WindowConfig
impl Sync for WindowConfig
impl Unpin for WindowConfig
impl UnwindSafe for WindowConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more