pub struct LimitsSnapshot {
pub host_ram_mib: u64,
pub mem_size_mib: Option<u64>,
pub running_drives: u32,
pub running_nics: u32,
pub running_pmem: u32,
}Expand description
Read-only view of LimitsState for callers that want a momentary snapshot.
Fields§
§host_ram_mib: u64Host RAM cap (MiB).
mem_size_mib: Option<u64>Configured mem_size_mib; None before the first PUT.
running_drives: u32Drives accepted so far.
running_nics: u32Network interfaces accepted so far.
running_pmem: u32pmem devices accepted so far.
Trait Implementations§
Source§impl Clone for LimitsSnapshot
impl Clone for LimitsSnapshot
Source§fn clone(&self) -> LimitsSnapshot
fn clone(&self) -> LimitsSnapshot
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 LimitsSnapshot
impl Debug for LimitsSnapshot
Source§impl PartialEq for LimitsSnapshot
impl PartialEq for LimitsSnapshot
Source§fn eq(&self, other: &LimitsSnapshot) -> bool
fn eq(&self, other: &LimitsSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LimitsSnapshot
impl Eq for LimitsSnapshot
impl StructuralPartialEq for LimitsSnapshot
Auto Trait Implementations§
impl Freeze for LimitsSnapshot
impl RefUnwindSafe for LimitsSnapshot
impl Send for LimitsSnapshot
impl Sync for LimitsSnapshot
impl Unpin for LimitsSnapshot
impl UnsafeUnpin for LimitsSnapshot
impl UnwindSafe for LimitsSnapshot
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