pub struct ProllyCacheUsage {
pub entries: usize,
pub serialized_bytes: usize,
pub pinned_entries: usize,
pub pinned_serialized_bytes: usize,
}Expand description
Current retained-node cache occupancy for a prolly manager.
Unlike ProllyMetricsSnapshot, these values are gauges rather than
cumulative counters. All four fields are captured while holding one cache
read lock, so their invariants can be evaluated as one observation.
Serialized byte values are the cache’s retained node weights; they do not
include decoded Rust allocations, store-client buffers, or process overhead.
Fields§
§entries: usizeImmutable node entries currently retained by the cache.
serialized_bytes: usizeTotal serialized-node byte weight currently retained by the cache.
pinned_entries: usizeRetained entries explicitly pinned as correctness-optional hints.
pinned_serialized_bytes: usizeSerialized-node byte weight attributable to pinned entries.
Trait Implementations§
Source§impl Clone for ProllyCacheUsage
impl Clone for ProllyCacheUsage
Source§fn clone(&self) -> ProllyCacheUsage
fn clone(&self) -> ProllyCacheUsage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProllyCacheUsage
Source§impl Debug for ProllyCacheUsage
impl Debug for ProllyCacheUsage
Source§impl Default for ProllyCacheUsage
impl Default for ProllyCacheUsage
Source§fn default() -> ProllyCacheUsage
fn default() -> ProllyCacheUsage
Returns the “default value” for a type. Read more
impl Eq for ProllyCacheUsage
Source§impl PartialEq for ProllyCacheUsage
impl PartialEq for ProllyCacheUsage
impl StructuralPartialEq for ProllyCacheUsage
Auto Trait Implementations§
impl Freeze for ProllyCacheUsage
impl RefUnwindSafe for ProllyCacheUsage
impl Send for ProllyCacheUsage
impl Sync for ProllyCacheUsage
impl Unpin for ProllyCacheUsage
impl UnsafeUnpin for ProllyCacheUsage
impl UnwindSafe for ProllyCacheUsage
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