Struct joycon_sys::input::DeviceStatus
source · #[repr(transparent)]pub struct DeviceStatus(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl DeviceStatus
impl DeviceStatus
pub fn connected(&self) -> bool
pub fn device_type(&self) -> DeviceType
pub fn charging(&self) -> bool
pub fn battery_level(&self) -> BatteryLevel
Trait Implementations§
source§impl<T> BitRange<T> for DeviceStatuswhere
u8: BitRange<T>,
impl<T> BitRange<T> for DeviceStatuswhere
u8: BitRange<T>,
source§impl Clone for DeviceStatus
impl Clone for DeviceStatus
source§fn clone(&self) -> DeviceStatus
fn clone(&self) -> DeviceStatus
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 DeviceStatus
impl Debug for DeviceStatus
impl Copy for DeviceStatus
Auto Trait Implementations§
impl Freeze for DeviceStatus
impl RefUnwindSafe for DeviceStatus
impl Send for DeviceStatus
impl Sync for DeviceStatus
impl Unpin for DeviceStatus
impl UnwindSafe for DeviceStatus
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