pub struct SlidingAggr {
pub wait: bool,
pub op: WindowOperation,
pub duration: Duration,
}Expand description
Represents a sliding window aggregation
The struct contains all information that is specific for a sliding window aggregation. The data that is shared between a sliding window aggregation and a discrete window aggregation is stored a Window.
Fields§
§wait: boolFlag to indicate whether or not the first aggregated value will be produced immediately or whether the window waits until duration has passed at least once.
op: WindowOperationThe aggregation operation
duration: DurationThe duration of the window
The duration of a sliding window is a time span.
Trait Implementations§
Source§impl Clone for SlidingAggr
impl Clone for SlidingAggr
Source§fn clone(&self) -> SlidingAggr
fn clone(&self) -> SlidingAggr
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 SlidingAggr
impl Debug for SlidingAggr
Source§impl PartialEq for SlidingAggr
impl PartialEq for SlidingAggr
Source§impl WindowAggregation for SlidingAggr
impl WindowAggregation for SlidingAggr
Source§fn wait_until_full(&self) -> bool
fn wait_until_full(&self) -> bool
Returns wheter or not the first aggregated value will be produced immediately or wheter the window waits Read more
Source§fn operation(&self) -> WindowOperation
fn operation(&self) -> WindowOperation
Returns the WindowOperation of the sliding or discrete window
impl Copy for SlidingAggr
impl Eq for SlidingAggr
impl StructuralPartialEq for SlidingAggr
Auto Trait Implementations§
impl Freeze for SlidingAggr
impl RefUnwindSafe for SlidingAggr
impl Send for SlidingAggr
impl Sync for SlidingAggr
impl Unpin for SlidingAggr
impl UnwindSafe for SlidingAggr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more