Struct rusty_xinput::BatteryType
source · pub struct BatteryType(pub BYTE);
Expand description
Defines type of battery used in device, if any.
Tuple Fields§
§0: BYTE
Implementations§
source§impl BatteryType
impl BatteryType
sourcepub const DISCONNECTED: Self = _
pub const DISCONNECTED: Self = _
Device is disconnected.
Trait Implementations§
source§impl Clone for BatteryType
impl Clone for BatteryType
source§fn clone(&self) -> BatteryType
fn clone(&self) -> BatteryType
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 BatteryType
impl Debug for BatteryType
source§impl PartialEq for BatteryType
impl PartialEq for BatteryType
source§fn eq(&self, other: &BatteryType) -> bool
fn eq(&self, other: &BatteryType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BatteryType
impl Eq for BatteryType
impl StructuralEq for BatteryType
impl StructuralPartialEq for BatteryType
Auto Trait Implementations§
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