pub struct MemoryPressureEvent {
pub current_usage: usize,
pub total_memory: usize,
pub usage_percent: f32,
pub pressure_level: PressureLevel,
}Fields§
§current_usage: usize§total_memory: usize§usage_percent: f32§pressure_level: PressureLevelTrait Implementations§
Source§impl Clone for MemoryPressureEvent
impl Clone for MemoryPressureEvent
Source§fn clone(&self) -> MemoryPressureEvent
fn clone(&self) -> MemoryPressureEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemoryPressureEvent
impl RefUnwindSafe for MemoryPressureEvent
impl Send for MemoryPressureEvent
impl Sync for MemoryPressureEvent
impl Unpin for MemoryPressureEvent
impl UnwindSafe for MemoryPressureEvent
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