pub struct InspectedTimeMatrix<T> { /* private fields */ }Implementations§
Source§impl<T> InspectedTimeMatrix<T>
impl<T> InspectedTimeMatrix<T>
Sourcepub fn fold(&self, sample: T) -> Result<(), FoldError>
pub fn fold(&self, sample: T) -> Result<(), FoldError>
Folding a sample to the time series.
Note: the timestamp for the time series is generated only after acquiring a lock. If the lock is already being held by another thread/process that reads the Inspect data, the timestamp generated may fall on the time interval after.
TODO(https://fxbug.dev/457421826) - Fix issue with delayed timestamp
pub fn fold_or_log_error(&self, sample: T)
Trait Implementations§
Source§impl<T> Clone for InspectedTimeMatrix<T>where
T: Clone,
impl<T> Clone for InspectedTimeMatrix<T>where
T: Clone,
Auto Trait Implementations§
impl<T> Freeze for InspectedTimeMatrix<T>
impl<T> !RefUnwindSafe for InspectedTimeMatrix<T>
impl<T> Send for InspectedTimeMatrix<T>
impl<T> Sync for InspectedTimeMatrix<T>
impl<T> Unpin for InspectedTimeMatrix<T>
impl<T> !UnwindSafe for InspectedTimeMatrix<T>
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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