pub struct StatsResponse {
pub user_id: String,
pub user_bytes_used: u64,
pub user_bytes_quota: Option<u64>,
pub user_entry_count: u64,
pub shared_entry_count: u64,
pub global_bytes_used: u64,
pub shared_bytes_used: u64,
pub shared_bytes_cap: Option<u64>,
pub shared_evictions_total: u64,
}Fields§
§user_id: String§user_bytes_used: u64§user_bytes_quota: Option<u64>§user_entry_count: u64§global_bytes_used: u64Total bytes currently stored in the _shared namespace. Useful
for sizing the eviction cap and for an operator’s eyeball
check against shared_bytes_cap. Defaults to 0 on a server
that does not track shared bytes (older deploys).
Operator-configured byte cap on the _shared namespace.
None means “no cap”; the cache grows unbounded until disk
fills. Some triggers eviction-on-write of oldest-accessed
shared entries when the cap is exceeded.
Monotonic counter of _shared entries evicted since process
boot. A nonzero rate signals the cap is too small for the
working set.
Trait Implementations§
Source§impl Clone for StatsResponse
impl Clone for StatsResponse
Source§fn clone(&self) -> StatsResponse
fn clone(&self) -> StatsResponse
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 moreSource§impl Debug for StatsResponse
impl Debug for StatsResponse
Source§impl<'de> Deserialize<'de> for StatsResponse
impl<'de> Deserialize<'de> for StatsResponse
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
Source§impl PartialEq for StatsResponse
impl PartialEq for StatsResponse
Source§fn eq(&self, other: &StatsResponse) -> bool
fn eq(&self, other: &StatsResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StatsResponse
impl Serialize for StatsResponse
impl Eq for StatsResponse
impl StructuralPartialEq for StatsResponse
Auto Trait Implementations§
impl Freeze for StatsResponse
impl RefUnwindSafe for StatsResponse
impl Send for StatsResponse
impl Sync for StatsResponse
impl Unpin for StatsResponse
impl UnsafeUnpin for StatsResponse
impl UnwindSafe for StatsResponse
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