Struct joycon_sys::output::OutputReport
source · #[repr(packed(1))]pub struct OutputReport { /* private fields */ }
Implementations§
source§impl OutputReport
impl OutputReport
pub fn new() -> Self
pub fn id(&self) -> RawId<OutputReportId>
pub fn rumble_subcmd(&self) -> Option<&SubcommandRequest>
pub fn rumble_subcmd_mut(&mut self) -> Option<&mut SubcommandRequest>
pub fn mcu_fw_update(&self) -> Option<&()>
pub fn mcu_fw_update_mut(&mut self) -> Option<&mut ()>
pub fn rumble_only(&self) -> Option<&()>
pub fn rumble_only_mut(&mut self) -> Option<&mut ()>
pub fn request_mcu_data(&self) -> Option<&MCURequest>
pub fn request_mcu_data_mut(&mut self) -> Option<&mut MCURequest>
pub fn rumble(&self) -> &Rumble
pub fn rumble_mut(&mut self) -> &mut Rumble
source§impl OutputReport
impl OutputReport
pub fn packet_counter(&mut self) -> &mut u8
pub fn is_special(&self) -> bool
pub fn set_registers(regs: &[Register]) -> (OutputReport, &[Register])
pub fn ir_resend(packet_id: u8) -> OutputReport
pub fn ir_ack(packet_id: u8) -> OutputReport
pub fn set_rumble(rumble_data: RumbleData) -> OutputReport
pub fn byte_size(&self) -> usize
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
source§impl Clone for OutputReport
impl Clone for OutputReport
source§fn clone(&self) -> OutputReport
fn clone(&self) -> OutputReport
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 OutputReport
impl Debug for OutputReport
source§impl From<MCURequest> for OutputReport
impl From<MCURequest> for OutputReport
source§fn from(mcu_request: MCURequest) -> Self
fn from(mcu_request: MCURequest) -> Self
Converts to this type from the input type.
source§impl From<OutputReportEnum> for OutputReport
impl From<OutputReportEnum> for OutputReport
source§fn from(x: OutputReportEnum) -> Self
fn from(x: OutputReportEnum) -> Self
Converts to this type from the input type.
source§impl From<SubcommandRequest> for OutputReport
impl From<SubcommandRequest> for OutputReport
source§fn from(subcmd: SubcommandRequest) -> Self
fn from(subcmd: SubcommandRequest) -> Self
Converts to this type from the input type.
source§impl From<SubcommandRequestEnum> for OutputReport
impl From<SubcommandRequestEnum> for OutputReport
source§fn from(subcmd: SubcommandRequestEnum) -> Self
fn from(subcmd: SubcommandRequestEnum) -> Self
Converts to this type from the input type.
source§impl TryFrom<OutputReport> for OutputReportEnum
impl TryFrom<OutputReport> for OutputReportEnum
§type Error = OutputReport
type Error = OutputReport
The type returned in the event of a conversion error.
impl Copy for OutputReport
Auto Trait Implementations§
impl Freeze for OutputReport
impl RefUnwindSafe for OutputReport
impl Send for OutputReport
impl Sync for OutputReport
impl Unpin for OutputReport
impl UnwindSafe for OutputReport
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