pub struct CountWindow { /* private fields */ }Expand description
A count-based window that holds a fixed number of elements.
Implementations§
Trait Implementations§
Source§impl Clone for CountWindow
impl Clone for CountWindow
Source§fn clone(&self) -> CountWindow
fn clone(&self) -> CountWindow
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 moreSource§impl Debug for CountWindow
impl Debug for CountWindow
Source§impl Display for CountWindow
impl Display for CountWindow
Source§impl Hash for CountWindow
impl Hash for CountWindow
Source§impl PartialEq for CountWindow
impl PartialEq for CountWindow
Source§impl WindowTrigger<CountWindow> for CountTrigger
impl WindowTrigger<CountWindow> for CountTrigger
Source§fn on_element(
&mut self,
_timestamp: DateTime<Utc>,
window: &CountWindow,
) -> TriggerResult
fn on_element( &mut self, _timestamp: DateTime<Utc>, window: &CountWindow, ) -> TriggerResult
Called when an element is added to a window.
Source§fn on_processing_time(
&mut self,
_time: DateTime<Utc>,
_window: &CountWindow,
) -> TriggerResult
fn on_processing_time( &mut self, _time: DateTime<Utc>, _window: &CountWindow, ) -> TriggerResult
Called when processing time advances.
Source§fn on_event_time(
&mut self,
_watermark: DateTime<Utc>,
_window: &CountWindow,
) -> TriggerResult
fn on_event_time( &mut self, _watermark: DateTime<Utc>, _window: &CountWindow, ) -> TriggerResult
Called when the watermark (event time) advances.
Source§fn clear(&mut self, window: &CountWindow)
fn clear(&mut self, window: &CountWindow)
Called when the trigger is cleared.
Source§fn clone_trigger(&self) -> Box<dyn WindowTrigger<CountWindow>>
fn clone_trigger(&self) -> Box<dyn WindowTrigger<CountWindow>>
Creates a clone of this trigger.
impl Eq for CountWindow
impl StructuralPartialEq for CountWindow
Auto Trait Implementations§
impl Freeze for CountWindow
impl RefUnwindSafe for CountWindow
impl Send for CountWindow
impl Sync for CountWindow
impl Unpin for CountWindow
impl UnwindSafe for CountWindow
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