pub struct DevicePower {
pub state: PowerState,
pub seconds_remaining: Option<u32>,
pub percent: Option<u8>,
}Fields§
§state: PowerState§seconds_remaining: Option<u32>§percent: Option<u8>Trait Implementations§
Source§impl Clone for DevicePower
impl Clone for DevicePower
Source§fn clone(&self) -> DevicePower
fn clone(&self) -> DevicePower
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 moreSource§impl Debug for DevicePower
impl Debug for DevicePower
Source§impl Hash for DevicePower
impl Hash for DevicePower
Source§impl PartialEq for DevicePower
impl PartialEq for DevicePower
Source§fn eq(&self, other: &DevicePower) -> bool
fn eq(&self, other: &DevicePower) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DevicePower
impl Eq for DevicePower
impl StructuralPartialEq for DevicePower
Auto Trait Implementations§
impl Freeze for DevicePower
impl RefUnwindSafe for DevicePower
impl Send for DevicePower
impl Sync for DevicePower
impl Unpin for DevicePower
impl UnsafeUnpin for DevicePower
impl UnwindSafe for DevicePower
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