pub struct StaticPressure { /* private fields */ }Expand description
A fixed pressure reading — for tests and for processes that run without a memory governor.
Implementations§
Trait Implementations§
Source§impl Clone for StaticPressure
impl Clone for StaticPressure
Source§fn clone(&self) -> StaticPressure
fn clone(&self) -> StaticPressure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StaticPressure
Source§impl Debug for StaticPressure
impl Debug for StaticPressure
Source§impl MemoryPressure for StaticPressure
impl MemoryPressure for StaticPressure
Source§fn effective_target_bytes(&self) -> u64
fn effective_target_bytes(&self) -> u64
The memory governor’s effective RSS target (target minus active
leases).
Source§fn resident_bytes(&self) -> u64
fn resident_bytes(&self) -> u64
Non-cache working-set bytes already resident.
Auto Trait Implementations§
impl Freeze for StaticPressure
impl RefUnwindSafe for StaticPressure
impl Send for StaticPressure
impl Sync for StaticPressure
impl Unpin for StaticPressure
impl UnsafeUnpin for StaticPressure
impl UnwindSafe for StaticPressure
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