#[repr(C)]pub struct cwiid_state {
pub rpt_mode: u8,
pub led: u8,
pub rumble: u8,
pub battery: u8,
pub buttons: u16,
pub acc: [u8; 3],
pub ir_src: [cwiid_ir_src; 4],
pub ext_type: cwiid_ext_type,
pub ext: ext_state,
pub error: cwiid_error,
}Fields§
§rpt_mode: u8§led: u8§rumble: u8§battery: u8§acc: [u8; 3]§ir_src: [cwiid_ir_src; 4]§ext_type: cwiid_ext_type§ext: ext_state§error: cwiid_errorTrait Implementations§
Source§impl Clone for cwiid_state
impl Clone for cwiid_state
Source§fn clone(&self) -> cwiid_state
fn clone(&self) -> cwiid_state
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 moreimpl Copy for cwiid_state
Auto Trait Implementations§
impl Freeze for cwiid_state
impl RefUnwindSafe for cwiid_state
impl Send for cwiid_state
impl Sync for cwiid_state
impl Unpin for cwiid_state
impl UnwindSafe for cwiid_state
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