Struct joycon_sys::mcu::ir::IRRequest
source · #[repr(packed(1))]pub struct IRRequest { /* private fields */ }
Implementations§
source§impl IRRequest
impl IRRequest
pub fn new() -> Self
pub fn id(&self) -> RawId<IRRequestId>
pub fn get_sensor_data(&self) -> Option<&IRAckRequestPacket>
pub fn get_sensor_data_mut(&mut self) -> Option<&mut IRAckRequestPacket>
pub fn get_state(&self) -> Option<&()>
pub fn get_state_mut(&mut self) -> Option<&mut ()>
pub fn read_register(&self) -> Option<&IRReadRegisters>
pub fn read_register_mut(&mut self) -> Option<&mut IRReadRegisters>
Trait Implementations§
source§impl From<IRAckRequestPacket> for IRRequest
impl From<IRAckRequestPacket> for IRRequest
source§fn from(ack_request_packet: IRAckRequestPacket) -> Self
fn from(ack_request_packet: IRAckRequestPacket) -> Self
Converts to this type from the input type.
source§impl From<IRReadRegisters> for IRRequest
impl From<IRReadRegisters> for IRRequest
source§fn from(read_registers: IRReadRegisters) -> Self
fn from(read_registers: IRReadRegisters) -> Self
Converts to this type from the input type.
source§impl From<IRRequest> for MCURequest
impl From<IRRequest> for MCURequest
source§impl From<IRRequestEnum> for IRRequest
impl From<IRRequestEnum> for IRRequest
source§fn from(x: IRRequestEnum) -> Self
fn from(x: IRRequestEnum) -> Self
Converts to this type from the input type.
source§impl TryFrom<IRRequest> for IRRequestEnum
impl TryFrom<IRRequest> for IRRequestEnum
impl Copy for IRRequest
Auto Trait Implementations§
impl Freeze for IRRequest
impl RefUnwindSafe for IRRequest
impl Send for IRRequest
impl Sync for IRRequest
impl Unpin for IRRequest
impl UnwindSafe for IRRequest
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