pub struct BatteryType(/* private fields */);Expand description
[microsoft.com] BATTERY_TYPE_*
Implementations§
Source§impl BatteryType
impl BatteryType
Sourcepub const fn from_unchecked(d3d: u8) -> Self
pub const fn from_unchecked(d3d: u8) -> Self
Convert from an underlying winapi type.
This is probably safe… probably…
Sourcepub const fn into_inner(self) -> u8
pub const fn into_inner(self) -> u8
Convert back into an underlying winapi type.
Source§impl BatteryType
impl BatteryType
Sourcepub const Disconnected: BatteryType
pub const Disconnected: BatteryType
The device is not connected.
Sourcepub const Wired: BatteryType
pub const Wired: BatteryType
The device is a wired device, and does not have a battery.
Sourcepub const Alkaline: BatteryType
pub const Alkaline: BatteryType
The device has an alkaline battery.
Sourcepub const NiMH: BatteryType
pub const NiMH: BatteryType
The device has a nickle metal hydride battery.
Sourcepub const Unknown: BatteryType
👎Deprecated: Are you sure you want to use this? New BATTERY_TYPE_* enumerations may be added at a later date…
pub const Unknown: BatteryType
The device has an unknown battery type.
Trait Implementations§
Source§impl Clone for BatteryType
impl Clone for BatteryType
Source§fn clone(&self) -> BatteryType
fn clone(&self) -> BatteryType
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 BatteryType
impl Debug for BatteryType
Source§impl Default for BatteryType
impl Default for BatteryType
Source§impl From<BatteryType> for u8
impl From<BatteryType> for u8
Source§fn from(value: BatteryType) -> Self
fn from(value: BatteryType) -> Self
Converts to this type from the input type.
Source§impl Hash for BatteryType
impl Hash for BatteryType
Source§impl Ord for BatteryType
impl Ord for BatteryType
Source§fn cmp(&self, other: &BatteryType) -> Ordering
fn cmp(&self, other: &BatteryType) -> 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 BatteryType
impl PartialEq for BatteryType
Source§impl PartialOrd for BatteryType
impl PartialOrd for BatteryType
impl Copy for BatteryType
impl Eq for BatteryType
impl Pod for BatteryType
impl StructuralPartialEq for BatteryType
Auto Trait Implementations§
impl Freeze for BatteryType
impl RefUnwindSafe for BatteryType
impl Send for BatteryType
impl Sync for BatteryType
impl Unpin for BatteryType
impl UnwindSafe for BatteryType
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.