pub struct BackgroundMetricsInner {
pub last_decay: Option<DecayResult>,
pub last_decay_at: Option<u64>,
pub total_decay_deleted: u64,
pub total_decay_adjusted: u64,
pub last_dedup: Option<DedupResultSnapshot>,
pub last_dedup_at: Option<u64>,
pub total_dedup_removed: u64,
pub last_consolidation: Option<ConsolidationResultSnapshot>,
pub last_consolidation_at: Option<u64>,
pub total_consolidated: u64,
pub history: Vec<ActivityHistoryPoint>,
}Fields§
§last_decay: Option<DecayResult>Last decay cycle result
last_decay_at: Option<u64>Timestamp of last decay run (unix secs)
total_decay_deleted: u64Cumulative memories deleted by decay
total_decay_adjusted: u64Cumulative memories decayed (importance lowered)
last_dedup: Option<DedupResultSnapshot>Last dedup cycle result
last_dedup_at: Option<u64>Timestamp of last dedup run (unix secs)
total_dedup_removed: u64Cumulative duplicates removed
last_consolidation: Option<ConsolidationResultSnapshot>Last consolidation cycle result
last_consolidation_at: Option<u64>Timestamp of last consolidation run (unix secs)
total_consolidated: u64Cumulative memories consolidated
history: Vec<ActivityHistoryPoint>Historical data points for graphing (ring buffer, newest last)
Trait Implementations§
Source§impl Clone for BackgroundMetricsInner
impl Clone for BackgroundMetricsInner
Source§fn clone(&self) -> BackgroundMetricsInner
fn clone(&self) -> BackgroundMetricsInner
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 moreSource§impl Debug for BackgroundMetricsInner
impl Debug for BackgroundMetricsInner
Source§impl Default for BackgroundMetricsInner
impl Default for BackgroundMetricsInner
Source§fn default() -> BackgroundMetricsInner
fn default() -> BackgroundMetricsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackgroundMetricsInner
impl<'de> Deserialize<'de> for BackgroundMetricsInner
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BackgroundMetricsInner
impl RefUnwindSafe for BackgroundMetricsInner
impl Send for BackgroundMetricsInner
impl Sync for BackgroundMetricsInner
impl Unpin for BackgroundMetricsInner
impl UnsafeUnpin for BackgroundMetricsInner
impl UnwindSafe for BackgroundMetricsInner
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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