pub struct SimulatePressureNotificationCommand { /* private fields */ }Available on crate features
experimental and Memory only.Expand description
Simulate a memory pressure notification in all processes.
Implementations§
Source§impl SimulatePressureNotificationCommand
impl SimulatePressureNotificationCommand
pub fn new(level: PressureLevel) -> Self
Sourcepub fn level(&self) -> &PressureLevel
pub fn level(&self) -> &PressureLevel
Memory pressure level of the notification.
Trait Implementations§
Source§impl Clone for SimulatePressureNotificationCommand
impl Clone for SimulatePressureNotificationCommand
Source§fn clone(&self) -> SimulatePressureNotificationCommand
fn clone(&self) -> SimulatePressureNotificationCommand
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<'de> Deserialize<'de> for SimulatePressureNotificationCommand
impl<'de> Deserialize<'de> for SimulatePressureNotificationCommand
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 SimulatePressureNotificationCommand
impl RefUnwindSafe for SimulatePressureNotificationCommand
impl Send for SimulatePressureNotificationCommand
impl Sync for SimulatePressureNotificationCommand
impl Unpin for SimulatePressureNotificationCommand
impl UnwindSafe for SimulatePressureNotificationCommand
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