Struct windowed_stats::experimental::series::statistic::LatchMax
source · pub struct LatchMax<T> { /* private fields */ }
Expand description
Maximum statistic that sums non-monotonic samples into the maximum.
This statistic is sensitive to overflow in the sum of samples with the non-monotonic sum.
Implementations§
Trait Implementations§
source§impl Statistic for LatchMax<u64>
impl Statistic for LatchMax<u64>
§type Aggregation = u64
type Aggregation = u64
The type of the statistical aggregation.
source§fn aggregation(&self) -> Option<Self::Aggregation>
fn aggregation(&self) -> Option<Self::Aggregation>
Gets the statistical aggregation. Read more
Auto Trait Implementations§
impl<T> Freeze for LatchMax<T>where
T: Freeze,
impl<T> RefUnwindSafe for LatchMax<T>where
T: RefUnwindSafe,
impl<T> Send for LatchMax<T>where
T: Send,
impl<T> Sync for LatchMax<T>where
T: Sync,
impl<T> Unpin for LatchMax<T>where
T: Unpin,
impl<T> UnwindSafe for LatchMax<T>where
T: 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
source§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<F> StatisticExt for Fwhere
F: Statistic,
impl<F> StatisticExt for Fwhere
F: Statistic,
source§fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
fn get_aggregation_and_reset(&mut self) -> Option<Self::Aggregation>
Gets the statistical aggregation and resets the statistic.