Struct rtlola_hir::hir::SlidingAggr
source · [−]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: bool
Flag 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: WindowOperation
The aggregation operation
duration: Duration
The duration of the window
The duration of a sliding window is a time span.
Trait Implementations
sourceimpl Clone for SlidingAggr
impl Clone for SlidingAggr
sourcefn clone(&self) -> SlidingAggr
fn clone(&self) -> SlidingAggr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SlidingAggr
impl Debug for SlidingAggr
sourceimpl PartialEq<SlidingAggr> for SlidingAggr
impl PartialEq<SlidingAggr> for SlidingAggr
sourcefn eq(&self, other: &SlidingAggr) -> bool
fn eq(&self, other: &SlidingAggr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SlidingAggr) -> bool
fn ne(&self, other: &SlidingAggr) -> bool
This method tests for !=
.
sourceimpl WindowAggregation for SlidingAggr
impl WindowAggregation for SlidingAggr
sourcefn 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
sourcefn operation(&self) -> WindowOperation
fn operation(&self) -> WindowOperation
Returns the WindowOperation of the sliding or discrete window
impl Copy for SlidingAggr
impl StructuralPartialEq for SlidingAggr
Auto Trait Implementations
impl RefUnwindSafe for SlidingAggr
impl Send for SlidingAggr
impl Sync for SlidingAggr
impl Unpin for SlidingAggr
impl UnwindSafe for SlidingAggr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more