Struct joycon_sys::mcu::MCURequest
source · #[repr(packed(1))]pub struct MCURequest { /* private fields */ }
Implementations§
source§impl MCURequest
impl MCURequest
pub fn new() -> Self
pub fn id(&self) -> RawId<MCURequestId>
pub fn get_mcu_status(&self) -> Option<&()>
pub fn get_mcu_status_mut(&mut self) -> Option<&mut ()>
pub fn get_ncf_data(&self) -> Option<&()>
pub fn get_nfc_data_mut(&mut self) -> Option<&mut ()>
pub fn get_ir_data(&self) -> Option<&IRRequest>
pub fn get_ir_data_mut(&mut self) -> Option<&mut IRRequest>
pub fn crc(&self) -> &MCURequestCRC
pub fn crc_mut(&mut self) -> &mut MCURequestCRC
Trait Implementations§
source§impl Clone for MCURequest
impl Clone for MCURequest
source§fn clone(&self) -> MCURequest
fn clone(&self) -> MCURequest
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 MCURequest
impl Debug for MCURequest
source§impl From<IRRequest> for MCURequest
impl From<IRRequest> for MCURequest
source§impl From<IRRequestEnum> for MCURequest
impl From<IRRequestEnum> for MCURequest
source§fn from(ir_request: IRRequestEnum) -> Self
fn from(ir_request: IRRequestEnum) -> Self
Converts to this type from the input type.
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<MCURequestEnum> for MCURequest
impl From<MCURequestEnum> for MCURequest
source§fn from(x: MCURequestEnum) -> Self
fn from(x: MCURequestEnum) -> Self
Converts to this type from the input type.
source§impl TryFrom<MCURequest> for MCURequestEnum
impl TryFrom<MCURequest> for MCURequestEnum
§type Error = MCURequest
type Error = MCURequest
The type returned in the event of a conversion error.
impl Copy for MCURequest
Auto Trait Implementations§
impl Freeze for MCURequest
impl RefUnwindSafe for MCURequest
impl Send for MCURequest
impl Sync for MCURequest
impl Unpin for MCURequest
impl UnwindSafe for MCURequest
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