Struct joycon_sys::input::InputReport
source · #[repr(packed(1))]pub struct InputReport { /* private fields */ }
Implementations§
source§impl InputReport
impl InputReport
pub fn new() -> Self
pub fn id(&self) -> RawId<InputReportId>
pub fn normal(&self) -> Option<&NormalInputReport>
pub fn normal_mut(&mut self) -> Option<&mut NormalInputReport>
pub fn standard_subcmd(&self) -> Option<&(StandardInputReport, SubcommandReply)>
pub fn standard_subcmd_mut( &mut self ) -> Option<&mut (StandardInputReport, SubcommandReply)>
pub fn mcu_fw_update(&self) -> Option<&()>
pub fn mcu_fw_update_mut(&mut self) -> Option<&mut ()>
pub fn standard_full(&self) -> Option<&(StandardInputReport, [Frame; 3])>
pub fn standard_full_mut( &mut self ) -> Option<&mut (StandardInputReport, [Frame; 3])>
pub fn standard_full_mcu( &self ) -> Option<&(StandardInputReport, [Frame; 3], MCUReport)>
pub fn standard_full_mcu_mut( &mut self ) -> Option<&mut (StandardInputReport, [Frame; 3], MCUReport)>
source§impl InputReport
impl InputReport
pub fn is_special(&self) -> bool
pub fn len(&self) -> usize
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
pub fn validate(&self)
pub fn standard(&self) -> Option<&StandardInputReport>
pub fn subcmd_reply(&self) -> Option<&SubcommandReply>
pub fn imu_frames(&self) -> Option<&[Frame; 3]>
pub fn mcu_report(&self) -> Option<&MCUReport>
Trait Implementations§
source§impl Clone for InputReport
impl Clone for InputReport
source§fn clone(&self) -> InputReport
fn clone(&self) -> InputReport
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 InputReport
impl Debug for InputReport
source§impl From<InputReportEnum> for InputReport
impl From<InputReportEnum> for InputReport
source§fn from(x: InputReportEnum) -> Self
fn from(x: InputReportEnum) -> Self
Converts to this type from the input type.
source§impl TryFrom<InputReport> for InputReportEnum
impl TryFrom<InputReport> for InputReportEnum
§type Error = InputReport
type Error = InputReport
The type returned in the event of a conversion error.
impl Copy for InputReport
Auto Trait Implementations§
impl Freeze for InputReport
impl RefUnwindSafe for InputReport
impl Send for InputReport
impl Sync for InputReport
impl Unpin for InputReport
impl UnwindSafe for InputReport
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