Struct rusty_xinput::XInputBatteryInformation
source · pub struct XInputBatteryInformation {
pub battery_type: BatteryType,
pub battery_level: BatteryLevel,
}
Expand description
Holds information about device’s battery.
See also XINPUT_BATTERY_INFORMATION.
Fields§
§battery_type: BatteryType
Type of batter used in device, if any.
battery_level: BatteryLevel
For devices with battery, contains battery level.
Trait Implementations§
source§impl Clone for XInputBatteryInformation
impl Clone for XInputBatteryInformation
source§fn clone(&self) -> XInputBatteryInformation
fn clone(&self) -> XInputBatteryInformation
Returns a copy 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 XInputBatteryInformation
impl Debug for XInputBatteryInformation
impl Copy for XInputBatteryInformation
Auto Trait Implementations§
impl RefUnwindSafe for XInputBatteryInformation
impl Send for XInputBatteryInformation
impl Sync for XInputBatteryInformation
impl Unpin for XInputBatteryInformation
impl UnwindSafe for XInputBatteryInformation
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