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 Default for ShutdownAction
impl Default for ShutdownAction
Source§fn default() -> ShutdownAction
fn default() -> ShutdownAction
Returns the “default value” for a type. Read more
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
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