pub enum PowerAction {
Shutdown,
Restart,
}Expand description
Power action kind for system power control operations.
Variants§
Trait Implementations§
Source§impl Clone for PowerAction
impl Clone for PowerAction
Source§fn clone(&self) -> PowerAction
fn clone(&self) -> PowerAction
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 moreimpl Copy for PowerAction
Source§impl Debug for PowerAction
impl Debug for PowerAction
impl Eq for PowerAction
Source§impl Hash for PowerAction
impl Hash for PowerAction
Source§impl PartialEq for PowerAction
impl PartialEq for PowerAction
Source§fn eq(&self, other: &PowerAction) -> bool
fn eq(&self, other: &PowerAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PowerAction
Auto Trait Implementations§
impl Freeze for PowerAction
impl RefUnwindSafe for PowerAction
impl Send for PowerAction
impl Sync for PowerAction
impl Unpin for PowerAction
impl UnsafeUnpin for PowerAction
impl UnwindSafe for PowerAction
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