#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.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