pub enum ShutdownAction {
poweroff,
pause,
}
Variants§
Trait Implementations§
Source§impl Clone for ShutdownAction
impl Clone for ShutdownAction
Source§fn clone(&self) -> ShutdownAction
fn clone(&self) -> ShutdownAction
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 ShutdownAction
impl Debug for ShutdownAction
Source§impl<'de> Deserialize<'de> for ShutdownAction
impl<'de> Deserialize<'de> for ShutdownAction
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
Source§impl Enum for ShutdownAction
impl Enum for ShutdownAction
Source§impl FromStr for ShutdownAction
impl FromStr for ShutdownAction
Source§impl Hash for ShutdownAction
impl Hash for ShutdownAction
Source§impl Ord for ShutdownAction
impl Ord for ShutdownAction
Source§fn cmp(&self, other: &ShutdownAction) -> Ordering
fn cmp(&self, other: &ShutdownAction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ShutdownAction
impl PartialEq for ShutdownAction
Source§impl PartialOrd for ShutdownAction
impl PartialOrd for ShutdownAction
Source§impl Serialize for ShutdownAction
impl Serialize for ShutdownAction
impl Copy for ShutdownAction
impl Eq for ShutdownAction
impl StructuralPartialEq for ShutdownAction
Auto Trait Implementations§
impl Freeze for ShutdownAction
impl RefUnwindSafe for ShutdownAction
impl Send for ShutdownAction
impl Sync for ShutdownAction
impl Unpin for ShutdownAction
impl UnwindSafe for ShutdownAction
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