pub struct CGroupLimits {
pub total_memory: u64,
pub free_memory: u64,
pub free_swap: u64,
pub rss: 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.
rss: u64Resident Set Size (RSS) (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 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§
§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
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more