pub struct Window<Aggr: WindowAggregation> {
pub target: StreamReference,
pub caller: StreamReference,
pub aggr: Aggr,
/* private fields */
}Expand description
Represents an instance of a sliding or a discrete window aggregation
The generatic Aggr defines if the instance is a slinding window or a discrete window.
The field aggr contains the data that is specific for a discrete of sliding window.
The other data is used for a discrete and a sliding window.
Fields§
§target: StreamReferenceThe stream whose values will be aggregated
caller: StreamReferenceThe stream calling and evaluating this window
aggr: AggrThe data that differentiates a sliding and a discrete window
This field can either has the type SlidingAggr or DiscreteAggr.
Trait Implementations§
Source§impl<A: WindowAggregation> Aggregation for Window<A>
impl<A: WindowAggregation> Aggregation for Window<A>
impl<Aggr: Copy + WindowAggregation> Copy for Window<Aggr>
impl<Aggr: Eq + WindowAggregation> Eq for Window<Aggr>
impl<Aggr: WindowAggregation> StructuralPartialEq for Window<Aggr>
Auto Trait Implementations§
impl<Aggr> Freeze for Window<Aggr>where
Aggr: Freeze,
impl<Aggr> RefUnwindSafe for Window<Aggr>where
Aggr: RefUnwindSafe,
impl<Aggr> Send for Window<Aggr>where
Aggr: Send,
impl<Aggr> Sync for Window<Aggr>where
Aggr: Sync,
impl<Aggr> Unpin for Window<Aggr>where
Aggr: Unpin,
impl<Aggr> UnwindSafe for Window<Aggr>where
Aggr: UnwindSafe,
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