#[repr(u8)]pub enum PowerSourceStatus {
Unspecified = 0,
Active = 1,
Standby = 2,
Unavailable = 3,
}Variants§
Unspecified = 0
Indicate the source status is not specified
Active = 1
Indicate the source is available and currently supplying power
Standby = 2
Indicate the source is available, but is not currently supplying power
Indicate the source is not currently available to supply power
Implementations§
Trait Implementations§
Source§impl Clone for PowerSourceStatus
impl Clone for PowerSourceStatus
Source§fn clone(&self) -> PowerSourceStatus
fn clone(&self) -> PowerSourceStatus
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 PowerSourceStatus
impl Debug for PowerSourceStatus
Source§impl<'de> Deserialize<'de> for PowerSourceStatus
impl<'de> Deserialize<'de> for PowerSourceStatus
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 From<PowerSourceStatus> for u8
impl From<PowerSourceStatus> for u8
Source§fn from(val: PowerSourceStatus) -> Self
fn from(val: PowerSourceStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PowerSourceStatus
impl PartialEq for PowerSourceStatus
Source§impl Serialize for PowerSourceStatus
impl Serialize for PowerSourceStatus
impl Copy for PowerSourceStatus
impl Eq for PowerSourceStatus
impl StructuralPartialEq for PowerSourceStatus
Auto Trait Implementations§
impl Freeze for PowerSourceStatus
impl RefUnwindSafe for PowerSourceStatus
impl Send for PowerSourceStatus
impl Sync for PowerSourceStatus
impl Unpin for PowerSourceStatus
impl UnwindSafe for PowerSourceStatus
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