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: 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.
rss: u64
Resident 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 u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬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