#[repr(transparent)]pub struct QmiDmsPowerState(pub c_uint);Expand description
Flags specifying the current power state.
If QMI_DMS_POWER_STATE_EXTERNAL_SOURCE is set, the device is powerered by an
external source; otherwise it is powered by a battery.
If QMI_DMS_POWER_STATE_BATTERY_CONNECTED is set, the battery is connected;
otherwise the battery is not connected.
If QMI_DMS_POWER_STATE_BATTERY_CHARGING is set, the battery is being charged;
otherwise the battery is not being charged.
If QMI_DMS_POWER_STATE_FAULT is set, a power fault has been detected.
Since: 1.0
Tuple Fields§
§0: c_uintImplementations§
Source§impl QmiDmsPowerState
impl QmiDmsPowerState
Sourcepub const EXTERNAL_SOURCE: QmiDmsPowerState
pub const EXTERNAL_SOURCE: QmiDmsPowerState
Powered by an external source.
Sourcepub const BATTERY_CONNECTED: QmiDmsPowerState
pub const BATTERY_CONNECTED: QmiDmsPowerState
Battery is connected.
Sourcepub const BATTERY_CHARGING: QmiDmsPowerState
pub const BATTERY_CHARGING: QmiDmsPowerState
Battery is currently being charged.
Sourcepub const FAULT: QmiDmsPowerState
pub const FAULT: QmiDmsPowerState
Recognized power fault.
Trait Implementations§
Source§impl Clone for QmiDmsPowerState
impl Clone for QmiDmsPowerState
Source§fn clone(&self) -> QmiDmsPowerState
fn clone(&self) -> QmiDmsPowerState
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 QmiDmsPowerState
Source§impl Debug for QmiDmsPowerState
impl Debug for QmiDmsPowerState
impl Eq for QmiDmsPowerState
Source§impl Hash for QmiDmsPowerState
impl Hash for QmiDmsPowerState
Source§impl PartialEq for QmiDmsPowerState
impl PartialEq for QmiDmsPowerState
impl StructuralPartialEq for QmiDmsPowerState
Auto Trait Implementations§
impl Freeze for QmiDmsPowerState
impl RefUnwindSafe for QmiDmsPowerState
impl Send for QmiDmsPowerState
impl Sync for QmiDmsPowerState
impl Unpin for QmiDmsPowerState
impl UnsafeUnpin for QmiDmsPowerState
impl UnwindSafe for QmiDmsPowerState
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