Enum PressureWatch
#[non_exhaustive]pub enum PressureWatch {
No,
Yes,
Auto,
Skip,
Off,
On,
Other(String),
}Expand description
Whether the manager watches the pressure stall information of a unit.
This is the value of the DefaultMemoryPressureWatch,
DefaultCPUPressureWatch and DefaultIOPressureWatch properties of the
manager.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
No
Do not watch.
Yes
Watch.
Auto
Watch if the system supports it.
Skip
Do not watch and leave the pressure environment variables unset.
Off
The old spelling of PressureWatch::No. Systemd 254 to 256 sends it.
On
The old spelling of PressureWatch::Yes. Systemd 254 to 256 sends it.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl PressureWatch
impl PressureWatch
Trait Implementations§
§impl AsRef<str> for PressureWatch
impl AsRef<str> for PressureWatch
§impl Clone for PressureWatch
impl Clone for PressureWatch
§fn clone(&self) -> PressureWatch
fn clone(&self) -> PressureWatch
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 more§impl Debug for PressureWatch
impl Debug for PressureWatch
§impl<'de> Deserialize<'de> for PressureWatch
impl<'de> Deserialize<'de> for PressureWatch
§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
§impl Display for PressureWatch
impl Display for PressureWatch
impl Eq for PressureWatch
§impl From<&str> for PressureWatch
impl From<&str> for PressureWatch
§impl From<PressureWatch> for Value<'static>
impl From<PressureWatch> for Value<'static>
§fn from(__value: PressureWatch) -> Self
fn from(__value: PressureWatch) -> Self
Converts to this type from the input type.
§impl From<String> for PressureWatch
impl From<String> for PressureWatch
§impl FromStr for PressureWatch
impl FromStr for PressureWatch
§impl Hash for PressureWatch
impl Hash for PressureWatch
§impl PartialEq for PressureWatch
impl PartialEq for PressureWatch
§impl Serialize for PressureWatch
impl Serialize for PressureWatch
impl StructuralPartialEq for PressureWatch
§impl TryFrom<OwnedValue> for PressureWatch
impl TryFrom<OwnedValue> for PressureWatch
§impl<'__a> TryFrom<Value<'__a>> for PressureWatch
impl<'__a> TryFrom<Value<'__a>> for PressureWatch
§impl Type for PressureWatch
impl Type for PressureWatch
Auto Trait Implementations§
impl Freeze for PressureWatch
impl RefUnwindSafe for PressureWatch
impl Send for PressureWatch
impl Sync for PressureWatch
impl Unpin for PressureWatch
impl UnsafeUnpin for PressureWatch
impl UnwindSafe for PressureWatch
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.