pub struct StorageInfo {
pub audit_bytes: u64,
pub redb_bytes: u64,
pub blobs_bytes: u64,
}Expand description
The status.storage block (#88): bytes actually on disk, by subsystem. Counts, never
content. Additive-only.
Default is all zeros, which reads as “measured, and found empty” (#148). It is here so a
fixture can build one field and elide the rest; it is not a way to say “unmeasured”. For that,
leave StatusResult.storage as None — a defaulted StatusResult does exactly that.
Fields§
§audit_bytes: u64Summed sizes of the monthly audit files (<state>/audit/*.jsonl).
redb_bytes: u64Size of the peer/trust state store (state.redb).
blobs_bytes: u64Total size under the app-blob store directory; 0 when no blob store exists.
Trait Implementations§
Source§impl Clone for StorageInfo
impl Clone for StorageInfo
Source§fn clone(&self) -> StorageInfo
fn clone(&self) -> StorageInfo
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 StorageInfo
Source§impl Debug for StorageInfo
impl Debug for StorageInfo
Source§impl Default for StorageInfo
impl Default for StorageInfo
Source§fn default() -> StorageInfo
fn default() -> StorageInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageInfo
impl<'de> Deserialize<'de> for StorageInfo
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
impl Eq for StorageInfo
Source§impl PartialEq for StorageInfo
impl PartialEq for StorageInfo
Source§impl Serialize for StorageInfo
impl Serialize for StorageInfo
impl StructuralPartialEq for StorageInfo
Auto Trait Implementations§
impl Freeze for StorageInfo
impl RefUnwindSafe for StorageInfo
impl Send for StorageInfo
impl Sync for StorageInfo
impl Unpin for StorageInfo
impl UnsafeUnpin for StorageInfo
impl UnwindSafe for StorageInfo
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