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: u64Total memory (in bytes) for the current cgroup.
free_memory: u64Free memory (in bytes) for the current cgroup.
free_swap: u64Free 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§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 RefUnwindSafe for CGroupLimits
impl Send for CGroupLimits
impl Sync for CGroupLimits
impl Unpin for CGroupLimits
impl UnwindSafe for CGroupLimits
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more