Struct sysinfo::CGroupLimits
source · pub struct CGroupLimits {
pub total_memory: u64,
pub free_memory: u64,
pub free_swap: u64,
}
Expand description
Contains memory limits for the current process.
Fields§
§total_memory: u64
Total memory (in bytes) for the current cgroup.
free_memory: u64
Free memory (in bytes) for the current cgroup.
free_swap: u64
Free swap (in bytes) for the current cgroup.
Trait Implementations§
source§impl Clone for CGroupLimits
impl Clone for CGroupLimits
source§fn clone(&self) -> CGroupLimits
fn clone(&self) -> CGroupLimits
Returns a copy of the value. Read more
1.0.0 · 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 CGroupLimits
impl Debug for CGroupLimits
source§impl Default for CGroupLimits
impl Default for CGroupLimits
source§fn default() -> CGroupLimits
fn default() -> CGroupLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CGroupLimits
impl RefUnwindSafe for CGroupLimits
impl Send for CGroupLimits
impl Sync for CGroupLimits
impl Unpin for CGroupLimits
impl UnwindSafe for CGroupLimits
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