#[repr(C)]pub struct BatteryInformation {
pub battery_type: BatteryType,
pub battery_level: BatteryLevel,
}Expand description
[microsoft.com] XINPUT_BATTERY_INFORMATION
Battery type and charge.
Fields§
§battery_type: BatteryTypeThe type of battery.
battery_level: BatteryLevelThe charge state of the battery. This value is only valid for wireless devices with a known battery type.
Trait Implementations§
Source§impl AsMut<BatteryInformation> for BatteryInformation
impl AsMut<BatteryInformation> for BatteryInformation
Source§impl AsMut<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature winapi-0-3 only.
impl AsMut<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature
winapi-0-3 only.Source§fn as_mut(&mut self) -> &mut BatteryInformation
fn as_mut(&mut self) -> &mut BatteryInformation
Converts this type into a mutable reference of the (usually inferred) input type.
§impl AsMut<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature windows-sys-0-52 only.
impl AsMut<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature
windows-sys-0-52 only.§fn as_mut(&mut self) -> &mut BatteryInformation
fn as_mut(&mut self) -> &mut BatteryInformation
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsMut<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature winapi-0-3 only.
impl AsMut<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature
winapi-0-3 only.Source§fn as_mut(&mut self) -> &mut XINPUT_BATTERY_INFORMATION
fn as_mut(&mut self) -> &mut XINPUT_BATTERY_INFORMATION
Converts this type into a mutable reference of the (usually inferred) input type.
§impl AsMut<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature windows-sys-0-52 only.
impl AsMut<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature
windows-sys-0-52 only.Source§impl AsRef<BatteryInformation> for BatteryInformation
impl AsRef<BatteryInformation> for BatteryInformation
Source§impl AsRef<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature winapi-0-3 only.
impl AsRef<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature
winapi-0-3 only.Source§fn as_ref(&self) -> &BatteryInformation
fn as_ref(&self) -> &BatteryInformation
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature windows-sys-0-52 only.
impl AsRef<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature
windows-sys-0-52 only.§fn as_ref(&self) -> &BatteryInformation
fn as_ref(&self) -> &BatteryInformation
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature winapi-0-3 only.
impl AsRef<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature
winapi-0-3 only.Source§fn as_ref(&self) -> &XINPUT_BATTERY_INFORMATION
fn as_ref(&self) -> &XINPUT_BATTERY_INFORMATION
Converts this type into a shared reference of the (usually inferred) input type.
§impl AsRef<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature windows-sys-0-52 only.
impl AsRef<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature
windows-sys-0-52 only.Source§impl Clone for BatteryInformation
impl Clone for BatteryInformation
Source§fn clone(&self) -> BatteryInformation
fn clone(&self) -> BatteryInformation
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 BatteryInformation
impl Debug for BatteryInformation
Source§impl Default for BatteryInformation
impl Default for BatteryInformation
Source§fn default() -> BatteryInformation
fn default() -> BatteryInformation
Returns the “default value” for a type. Read more
Source§impl From<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature winapi-0-3 only.
impl From<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature
winapi-0-3 only.Source§fn from(value: BatteryInformation) -> Self
fn from(value: BatteryInformation) -> Self
Converts to this type from the input type.
§impl From<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature windows-sys-0-52 only.
impl From<BatteryInformation> for XINPUT_BATTERY_INFORMATION
Available on crate feature
windows-sys-0-52 only.§fn from(value: BatteryInformation) -> Self
fn from(value: BatteryInformation) -> Self
Converts to this type from the input type.
Source§impl From<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature winapi-0-3 only.
impl From<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature
winapi-0-3 only.Source§fn from(value: XINPUT_BATTERY_INFORMATION) -> Self
fn from(value: XINPUT_BATTERY_INFORMATION) -> Self
Converts to this type from the input type.
§impl From<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature windows-sys-0-52 only.
impl From<XINPUT_BATTERY_INFORMATION> for BatteryInformation
Available on crate feature
windows-sys-0-52 only.impl Copy for BatteryInformation
impl Pod for BatteryInformation
Auto Trait Implementations§
impl Freeze for BatteryInformation
impl RefUnwindSafe for BatteryInformation
impl Send for BatteryInformation
impl Sync for BatteryInformation
impl Unpin for BatteryInformation
impl UnwindSafe for BatteryInformation
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.