pub struct WindowResult {
pub start_ms: u64,
pub end_ms: u64,
pub element_count: usize,
pub value: f64,
pub is_complete: bool,
}Expand description
The result of processing a single window.
Fields§
§start_ms: u64Window start time in milliseconds (0 for count-based windows, counts as index).
end_ms: u64Window end time in milliseconds (equal to end-index for count-based windows).
element_count: usizeNumber of data elements contained in this window.
value: f64Aggregated value for this window.
is_complete: boolWhether this window is complete (as opposed to a partial/trailing window).
Trait Implementations§
Source§impl Clone for WindowResult
impl Clone for WindowResult
Source§fn clone(&self) -> WindowResult
fn clone(&self) -> WindowResult
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 moreAuto Trait Implementations§
impl Freeze for WindowResult
impl RefUnwindSafe for WindowResult
impl Send for WindowResult
impl Sync for WindowResult
impl Unpin for WindowResult
impl UnsafeUnpin for WindowResult
impl UnwindSafe for WindowResult
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<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