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

Implementations§

source§

impl SubcommandRequest

source

pub fn new() -> Self

source

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

source

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

source

pub fn get_only_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 request_device_info(&self) -> Option<&()>

source

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

source

pub fn set_input_report_mode(&self) -> Option<&RawId<InputReportId>>

source

pub fn set_input_report_mode_mut(&mut self) -> Option<&mut RawId<InputReportId>>

source

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

source

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

source

pub fn set_shipment_mode(&self) -> Option<&RawId<Bool>>

source

pub fn set_shipment_mode_mut(&mut self) -> Option<&mut RawId<Bool>>

source

pub fn spi_read(&self) -> Option<&SPIReadRequest>

source

pub fn spi_read_mut(&mut self) -> Option<&mut SPIReadRequest>

source

pub fn spi_write(&self) -> Option<&SPIWriteRequest>

source

pub fn spi_write_mut(&mut self) -> Option<&mut SPIWriteRequest>

source

pub fn set_mcu_conf(&self) -> Option<&MCUCommand>

source

pub fn set_mcu_conf_mut(&mut self) -> Option<&mut MCUCommand>

source

pub fn set_mcu_state(&self) -> Option<&RawId<MCUMode>>

source

pub fn set_mcu_state_mut(&mut self) -> Option<&mut RawId<MCUMode>>

source

pub fn set_unknown_data(&self) -> Option<&[u8; 38]>

source

pub fn set_unknown_data_mut(&mut self) -> Option<&mut [u8; 38]>

source

pub fn set_player_lights(&self) -> Option<&PlayerLights>

source

pub fn set_player_lights_mut(&mut self) -> Option<&mut PlayerLights>

source

pub fn set_home_light(&self) -> Option<&HomeLight>

source

pub fn set_home_light_mut(&mut self) -> Option<&mut HomeLight>

source

pub fn set_imu_mode(&self) -> Option<&RawId<IMUMode>>

source

pub fn set_imu_mode_mut(&mut self) -> Option<&mut RawId<IMUMode>>

source

pub fn set_imu_sens(&self) -> Option<&Sensitivity>

source

pub fn set_imu_sens_mut(&mut self) -> Option<&mut Sensitivity>

source

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

source

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

source

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

source

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

source

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

source

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

source

pub fn unknown0x5a(&self) -> Option<&[u8; 38]>

source

pub fn unknown0x5a_mut(&mut self) -> Option<&mut [u8; 38]>

source

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

source

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

source

pub fn unknown0x5c(&self) -> Option<&[u8; 38]>

source

pub fn unknown0x5c_mut(&mut self) -> Option<&mut [u8; 38]>

source§

impl SubcommandRequest

source

pub fn disable_shipment_mode() -> Self

source

pub fn subcmd_0x59() -> Self

source

pub fn subcmd_0x5a() -> Self

source

pub fn subcmd_0x5b() -> Self

source

pub fn subcmd_0x5c_0() -> Self

source

pub fn subcmd_0x5c_6() -> Self

Trait Implementations§

source§

impl Clone for SubcommandRequest

source§

fn clone(&self) -> SubcommandRequest

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 SubcommandRequest

source§

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

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

impl From<AccessoryCommand> for SubcommandRequest

source§

fn from(accessory_cmd: AccessoryCommand) -> Self

Converts to this type from the input type.
source§

impl From<HomeLight> for SubcommandRequest

source§

fn from(home_light: HomeLight) -> Self

Converts to this type from the input type.
source§

impl From<MCUCommand> for SubcommandRequest

source§

fn from(mcu_cmd: MCUCommand) -> Self

Converts to this type from the input type.
source§

impl From<PlayerLights> for SubcommandRequest

source§

fn from(player_lights: PlayerLights) -> Self

Converts to this type from the input type.
source§

impl From<SPIReadRequest> for SubcommandRequest

source§

fn from(spi_read: SPIReadRequest) -> Self

Converts to this type from the input type.
source§

impl From<SPIWriteRequest> for SubcommandRequest

source§

fn from(spi_write: SPIWriteRequest) -> Self

Converts to this type from the input type.
source§

impl From<Sensitivity> for SubcommandRequest

source§

fn from(imu_sensitivity: Sensitivity) -> Self

Converts to this type from the input type.
source§

impl From<SubcommandRequest> for OutputReport

source§

fn from(subcmd: SubcommandRequest) -> Self

Converts to this type from the input type.
source§

impl From<SubcommandRequestEnum> for SubcommandRequest

source§

fn from(x: SubcommandRequestEnum) -> Self

Converts to this type from the input type.
source§

impl TryFrom<SubcommandRequest> for SubcommandRequestEnum

§

type Error = SubcommandRequest

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

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

Performs the conversion.
source§

impl Copy for SubcommandRequest

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.