pub struct CommitMetrics {
pub used_bytes: u64,
pub limit_bytes: u64,
pub usage_pct: f32,
}Expand description
Commit charge metrics (Windows memory commit accounting).
Represents the system’s commit charge: the total bytes committed by all processes, the commit limit, and the derived percentage. This is conceptually distinct from swap and must not be serialized as swap.
Fields§
§used_bytes: u64Committed bytes in use.
limit_bytes: u64Maximum commit limit in bytes.
usage_pct: f32Commit utilization percentage, 0.0..=100.0.
Trait Implementations§
Source§impl Clone for CommitMetrics
impl Clone for CommitMetrics
Source§fn clone(&self) -> CommitMetrics
fn clone(&self) -> CommitMetrics
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 CommitMetrics
Source§impl Debug for CommitMetrics
impl Debug for CommitMetrics
Source§impl<'de> Deserialize<'de> for CommitMetrics
impl<'de> Deserialize<'de> for CommitMetrics
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
Source§impl PartialEq for CommitMetrics
impl PartialEq for CommitMetrics
Source§impl Serialize for CommitMetrics
impl Serialize for CommitMetrics
impl StructuralPartialEq for CommitMetrics
Auto Trait Implementations§
impl Freeze for CommitMetrics
impl RefUnwindSafe for CommitMetrics
impl Send for CommitMetrics
impl Sync for CommitMetrics
impl Unpin for CommitMetrics
impl UnsafeUnpin for CommitMetrics
impl UnwindSafe for CommitMetrics
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