pub struct WindowConfig {
pub window_type: WindowType,
pub duration: Duration,
pub max_events: usize,
}Expand description
Window configuration for stream processing
Fields§
§window_type: WindowType§duration: Duration§max_events: usizeImplementations§
Source§impl WindowConfig
impl WindowConfig
Sourcepub fn with_max_events(self, max_events: usize) -> Self
pub fn with_max_events(self, max_events: usize) -> Self
Set maximum events per 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