pub struct MemoryPressureThresholds {
pub medium_threshold: f32,
pub high_threshold: f32,
pub critical_threshold: f32,
}Expand description
Memory pressure threshold configuration
Fields§
§medium_threshold: f32Medium pressure threshold (0.0-1.0)
high_threshold: f32High pressure threshold (0.0-1.0)
critical_threshold: f32Critical pressure threshold (0.0-1.0)
Trait Implementations§
Source§impl Clone for MemoryPressureThresholds
impl Clone for MemoryPressureThresholds
Source§fn clone(&self) -> MemoryPressureThresholds
fn clone(&self) -> MemoryPressureThresholds
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 moreSource§impl Debug for MemoryPressureThresholds
impl Debug for MemoryPressureThresholds
Source§impl Default for MemoryPressureThresholds
impl Default for MemoryPressureThresholds
Source§impl<'de> Deserialize<'de> for MemoryPressureThresholds
impl<'de> Deserialize<'de> for MemoryPressureThresholds
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MemoryPressureThresholds
impl RefUnwindSafe for MemoryPressureThresholds
impl Send for MemoryPressureThresholds
impl Sync for MemoryPressureThresholds
impl Unpin for MemoryPressureThresholds
impl UnsafeUnpin for MemoryPressureThresholds
impl UnwindSafe for MemoryPressureThresholds
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