pub struct DfSnapshot {
pub storage_used: usize,
pub storage_quota: Option<usize>,
pub memory_used: usize,
pub memory_quota: usize,
pub worlds: usize,
}Expand description
Aggregate storage/memory snapshot.
Returned by crate::Engine::df. Quotas of 0/None mean “unlimited”;
adapters should render that string for operator-facing output.
Fields§
§storage_used: usizeBytes used by durable bodies (SQLite-backed worlds).
storage_quota: Option<usize>Configured durable quota, or None if unlimited.
memory_used: usizeBytes used by in-memory bodies.
memory_quota: usizeConfigured memory cap. 0 means unlimited.
worlds: usizeTotal live worlds (durable + in-memory).
Auto Trait Implementations§
impl Freeze for DfSnapshot
impl RefUnwindSafe for DfSnapshot
impl Send for DfSnapshot
impl Sync for DfSnapshot
impl Unpin for DfSnapshot
impl UnsafeUnpin for DfSnapshot
impl UnwindSafe for DfSnapshot
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