pub struct VmSlack {
pub sandbox_id: String,
pub label: String,
pub runtime: String,
pub vm_footprint: Measured<u64>,
pub containers: Measured<u64>,
pub configured: Option<u64>,
pub slack: Measured<u64>,
pub summary: String,
pub notes: Vec<String>,
pub counts_as_reclaim: bool,
}Expand description
Memory an engine VM holds that none of its containers uses (SPEC §11 “VM slack”).
Fields§
§sandbox_id: String§label: String§runtime: String§vm_footprint: Measured<u64>Host footprint of the VM process(es).
containers: Measured<u64>Σ container memory inside it (engine stats).
configured: Option<u64>The VM’s configured memory, when known.
slack: Measured<u64>vm_footprint − containers; always an estimate.
summary: String“
notes: Vec<String>Caveats (footprint is a lower bound, container sum incomplete).
counts_as_reclaim: boolAlways false: restarting an engine stops every container, so this is never offered as safe reclaim.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmSlack
impl<'de> Deserialize<'de> for VmSlack
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 StructuralPartialEq for VmSlack
Auto Trait Implementations§
impl Forget for VmSlack
impl Freeze for VmSlack
impl Move for VmSlack
impl RefUnwindSafe for VmSlackwhere
String: RefUnwindSafe,
impl Send for VmSlack
impl Sync for VmSlack
impl Unpin for VmSlack
impl UnsafeUnpin for VmSlackwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for VmSlack
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