Enum scsys::PowerState
source · [−]pub enum PowerState {
Off,
On,
Transition,
}Expand description
Outlines a standard collection of power related states
Variants
Off
On
Transition
Trait Implementations
sourceimpl Clone for PowerState
impl Clone for PowerState
sourcefn clone(&self) -> PowerState
fn clone(&self) -> PowerState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PowerState
impl Debug for PowerState
sourceimpl Default for PowerState
impl Default for PowerState
sourceimpl<'de> Deserialize<'de> for PowerState
impl<'de> Deserialize<'de> for PowerState
sourcefn 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
sourceimpl FromStr for PowerState
impl FromStr for PowerState
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for PowerState
impl Hash for PowerState
sourceimpl PartialEq<PowerState> for PowerState
impl PartialEq<PowerState> for PowerState
sourcefn eq(&self, other: &PowerState) -> bool
fn eq(&self, other: &PowerState) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Serialize for PowerState
impl Serialize for PowerState
sourceimpl TryFrom<&str> for PowerState
impl TryFrom<&str> for PowerState
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
sourceimpl VariantNames for PowerState
impl VariantNames for PowerState
impl Copy for PowerState
impl StructuralPartialEq for PowerState
Auto Trait Implementations
impl RefUnwindSafe for PowerState
impl Send for PowerState
impl Sync for PowerState
impl Unpin for PowerState
impl UnwindSafe for PowerState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more