pub struct CountTrigger { /* private fields */ }Expand description
Trigger that fires after a specified count of elements.
Implementations§
Trait Implementations§
Source§impl Clone for CountTrigger
impl Clone for CountTrigger
Source§fn clone(&self) -> CountTrigger
fn clone(&self) -> CountTrigger
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 CountTrigger
impl Debug for CountTrigger
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.
Auto Trait Implementations§
impl Freeze for CountTrigger
impl RefUnwindSafe for CountTrigger
impl Send for CountTrigger
impl Sync for CountTrigger
impl Unpin for CountTrigger
impl UnwindSafe for CountTrigger
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