pub struct PowerState(pub i64);Tuple Fields§
§0: i64Implementations§
Source§impl PowerState
impl PowerState
pub const UNKNOWN: PowerState
pub const ON_BATTERY: PowerState
pub const NO_BATTERY: PowerState
pub const CHARGING: PowerState
pub const CHARGED: PowerState
Trait Implementations§
Source§impl Clone for PowerState
impl Clone for PowerState
Source§fn clone(&self) -> PowerState
fn clone(&self) -> PowerState
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 PowerState
impl Debug for PowerState
Source§impl From<PowerState> for i64
impl From<PowerState> for i64
Source§fn from(v: PowerState) -> Self
fn from(v: PowerState) -> Self
Converts to this type from the input type.
Source§impl From<i64> for PowerState
impl From<i64> for PowerState
Source§impl FromVariant for PowerState
impl FromVariant for PowerState
fn from_variant(v: &Variant) -> Result<Self, FromVariantError>
Source§impl Hash for PowerState
impl Hash for PowerState
Source§impl Ord for PowerState
impl Ord for PowerState
Source§fn cmp(&self, other: &PowerState) -> Ordering
fn cmp(&self, other: &PowerState) -> 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 PowerState
impl PartialEq for PowerState
Source§impl PartialOrd for PowerState
impl PartialOrd for PowerState
impl Copy for PowerState
impl Eq for PowerState
impl StructuralPartialEq for PowerState
Auto Trait Implementations§
impl Freeze for PowerState
impl RefUnwindSafe for PowerState
impl Send for PowerState
impl Sync for PowerState
impl Unpin for PowerState
impl UnwindSafe for PowerState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.