#[repr(packed(1))]
pub struct SubcommandReply { /* private fields */ }

Implementations§

source§

impl SubcommandReply

source

pub fn new() -> Self

source

pub fn id(&self) -> RawId<SubcommandId>

source

pub fn controller_state(&self) -> Option<&()>

source

pub fn controller_state_mut(&mut self) -> Option<&mut ()>

source

pub fn bluetooth_manual_pairing(&self) -> Option<&()>

source

pub fn bluetooth_manual_pairing_mut(&mut self) -> Option<&mut ()>

source

pub fn device_info(&self) -> Option<&DeviceInfo>

source

pub fn device_info_mut(&mut self) -> Option<&mut DeviceInfo>

source

pub fn input_report_mode_result(&self) -> Option<&()>

source

pub fn input_report_mode_result_mut(&mut self) -> Option<&mut ()>

source

pub fn trigger_buttons_elapsed_time(&self) -> Option<&[U16LE; 7]>

source

pub fn trigger_buttons_elapsed_time_mut(&mut self) -> Option<&mut [U16LE; 7]>

source

pub fn shipment_mode_result(&self) -> Option<&()>

source

pub fn shipment_mode_result_mut(&mut self) -> Option<&mut ()>

source

pub fn spi_read_result(&self) -> Option<&SPIReadResult>

source

pub fn spi_read_result_mut(&mut self) -> Option<&mut SPIReadResult>

source

pub fn spi_write_result(&self) -> Option<&SPIWriteResult>

source

pub fn spi_write_result_mut(&mut self) -> Option<&mut SPIWriteResult>

source

pub fn mcu_report(&self) -> Option<&MCUReport>

source

pub fn mcu_report_mut(&mut self) -> Option<&mut MCUReport>

source

pub fn mcu_state_result(&self) -> Option<&()>

source

pub fn mcu_state_result_mut(&mut self) -> Option<&mut ()>

source

pub fn set_unknown_data(&self) -> Option<&()>

source

pub fn set_unknown_data_mut(&mut self) -> Option<&mut ()>

source

pub fn player_lights_result(&self) -> Option<&()>

source

pub fn player_lights_result_mut(&mut self) -> Option<&mut ()>

source

pub fn home_light_result(&self) -> Option<&()>

source

pub fn home_light_result_mut(&mut self) -> Option<&mut ()>

source

pub fn imu_mode_result(&self) -> Option<&()>

source

pub fn imu_mode_result_mut(&mut self) -> Option<&mut ()>

source

pub fn imu_sens_result(&self) -> Option<&()>

source

pub fn imu_sens_result_mut(&mut self) -> Option<&mut ()>

source

pub fn enable_vibration(&self) -> Option<&()>

source

pub fn enable_vibration_mut(&mut self) -> Option<&mut ()>

source

pub fn maybe_accessory(&self) -> Option<&AccessoryResponse>

source

pub fn maybe_accessory_mut(&mut self) -> Option<&mut AccessoryResponse>

source

pub fn unknown0x59(&self) -> Option<&()>

source

pub fn unknown0x59_mut(&mut self) -> Option<&mut ()>

source

pub fn unknown0x5a(&self) -> Option<&()>

source

pub fn unknown0x5a_mut(&mut self) -> Option<&mut ()>

source

pub fn unknown0x5b(&self) -> Option<&()>

source

pub fn unknown0x5b_mut(&mut self) -> Option<&mut ()>

source

pub fn unknown0x5c(&self) -> Option<&()>

source

pub fn unknown0x5c_mut(&mut self) -> Option<&mut ()>

source

pub fn ack(&self) -> &Ack

source

pub fn ack_mut(&mut self) -> &mut Ack

source§

impl SubcommandReply

source

pub fn validate(&self)

source

pub fn is_spi_write_success(&self) -> Option<bool>

Trait Implementations§

source§

impl Clone for SubcommandReply

source§

fn clone(&self) -> SubcommandReply

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SubcommandReply

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<SubcommandReplyEnum> for SubcommandReply

source§

fn from(x: SubcommandReplyEnum) -> Self

Converts to this type from the input type.
source§

impl TryFrom<SubcommandReply> for SubcommandReplyEnum

§

type Error = SubcommandReply

The type returned in the event of a conversion error.
source§

fn try_from(x: SubcommandReply) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl Copy for SubcommandReply

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.