pub struct DiscreteAggr {
pub wait: bool,
pub op: WindowOperation,
pub duration: usize,
}Expand description
Represents a discrete window aggregation
The struct contains all information that is specific for a discrete 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: usizeThe duration of the window
The duration of a discrete window is a discrete number of values.
Trait Implementations§
Source§impl Clone for DiscreteAggr
impl Clone for DiscreteAggr
Source§fn clone(&self) -> DiscreteAggr
fn clone(&self) -> DiscreteAggr
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 DiscreteAggr
impl Debug for DiscreteAggr
Source§impl PartialEq for DiscreteAggr
impl PartialEq for DiscreteAggr
Source§impl WindowAggregation for DiscreteAggr
impl WindowAggregation for DiscreteAggr
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 DiscreteAggr
impl Eq for DiscreteAggr
impl StructuralPartialEq for DiscreteAggr
Auto Trait Implementations§
impl Freeze for DiscreteAggr
impl RefUnwindSafe for DiscreteAggr
impl Send for DiscreteAggr
impl Sync for DiscreteAggr
impl Unpin for DiscreteAggr
impl UnwindSafe for DiscreteAggr
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