Struct procfs::MemoryPressure
source · [−]pub struct MemoryPressure {
pub some: PressureRecord,
pub full: PressureRecord,
}
Expand description
Memory pressure information
Fields
some: PressureRecord
This record indicates the share of time in which at least some tasks are stalled
full: PressureRecord
This record indicates this share of time in which all non-idle tasks are stalled simultaneously.
Implementations
sourceimpl MemoryPressure
impl MemoryPressure
sourcepub fn new() -> ProcResult<MemoryPressure>
pub fn new() -> ProcResult<MemoryPressure>
Get memory pressure information
Trait Implementations
sourceimpl Clone for MemoryPressure
impl Clone for MemoryPressure
sourcefn clone(&self) -> MemoryPressure
fn clone(&self) -> MemoryPressure
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for MemoryPressure
impl Send for MemoryPressure
impl Sync for MemoryPressure
impl Unpin for MemoryPressure
impl UnwindSafe for MemoryPressure
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more