wifi_action_tx_req

Struct wifi_action_tx_req 

Source
pub struct wifi_action_tx_req {
    pub ifx: i32,
    pub dest_mac: Vec<u8, 6>,
    pub no_ack: bool,
    pub data_len: u32,
    pub data: Vec<u8, 16>,
}

Fields§

§ifx: i32§dest_mac: Vec<u8, 6>§no_ack: bool§data_len: u32§data: Vec<u8, 16>

Implementations§

Source§

impl wifi_action_tx_req

Source

pub fn ifx(&self) -> &i32

Return a reference to ifx

Source

pub fn mut_ifx(&mut self) -> &mut i32

Return a mutable reference to ifx

Source

pub fn set_ifx(&mut self, value: i32) -> &mut Self

Set the value of ifx

Source

pub fn init_ifx(self, value: i32) -> Self

Builder method that sets the value of ifx. Useful for initializing the message.

Source

pub fn dest_mac(&self) -> &Vec<u8, 6>

Return a reference to dest_mac

Source

pub fn mut_dest_mac(&mut self) -> &mut Vec<u8, 6>

Return a mutable reference to dest_mac

Source

pub fn set_dest_mac(&mut self, value: Vec<u8, 6>) -> &mut Self

Set the value of dest_mac

Source

pub fn init_dest_mac(self, value: Vec<u8, 6>) -> Self

Builder method that sets the value of dest_mac. Useful for initializing the message.

Source

pub fn no_ack(&self) -> &bool

Return a reference to no_ack

Source

pub fn mut_no_ack(&mut self) -> &mut bool

Return a mutable reference to no_ack

Source

pub fn set_no_ack(&mut self, value: bool) -> &mut Self

Set the value of no_ack

Source

pub fn init_no_ack(self, value: bool) -> Self

Builder method that sets the value of no_ack. Useful for initializing the message.

Source

pub fn data_len(&self) -> &u32

Return a reference to data_len

Source

pub fn mut_data_len(&mut self) -> &mut u32

Return a mutable reference to data_len

Source

pub fn set_data_len(&mut self, value: u32) -> &mut Self

Set the value of data_len

Source

pub fn init_data_len(self, value: u32) -> Self

Builder method that sets the value of data_len. Useful for initializing the message.

Source

pub fn data(&self) -> &Vec<u8, 16>

Return a reference to data

Source

pub fn mut_data(&mut self) -> &mut Vec<u8, 16>

Return a mutable reference to data

Source

pub fn set_data(&mut self, value: Vec<u8, 16>) -> &mut Self

Set the value of data

Source

pub fn init_data(self, value: Vec<u8, 16>) -> Self

Builder method that sets the value of data. Useful for initializing the message.

Trait Implementations§

Source§

impl Clone for wifi_action_tx_req

Source§

fn clone(&self) -> wifi_action_tx_req

Returns a duplicate 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 wifi_action_tx_req

Source§

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

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

impl Default for wifi_action_tx_req

Source§

fn default() -> wifi_action_tx_req

Returns the “default value” for a type. Read more
Source§

impl MessageDecode for wifi_action_tx_req

Source§

fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>

Decode an instance of the message from the decoder and merge it into self. Read more
Source§

fn decode_from_bytes( &mut self, bytes: &[u8], ) -> Result<(), DecodeError<Infallible>>

Decode an instance of the message from the provided bytes
Source§

fn decode_len_delimited<R>( &mut self, decoder: &mut PbDecoder<R>, ) -> Result<(), DecodeError<<R as PbRead>::Error>>
where R: PbRead,

Decode an instance of the message from the decoder as a length-delimited record, starting with a length prefix.
Source§

impl MessageEncode for wifi_action_tx_req

Source§

const MAX_SIZE: Option<usize>

Maximum encoded size of the message on the wire. Read more
Source§

fn encode<IMPL_MICROPB_WRITE: PbWrite>( &self, encoder: &mut PbEncoder<IMPL_MICROPB_WRITE>, ) -> Result<(), IMPL_MICROPB_WRITE::Error>

Encode this message using the encoder.
Source§

fn compute_size(&self) -> usize

Compute the size of this message on the wire.
Source§

fn encode_len_delimited<W>( &self, encoder: &mut PbEncoder<W>, ) -> Result<(), <W as PbWrite>::Error>
where W: PbWrite,

Encode this message as a length-delimited record, starting with a length prefix.
Source§

impl PartialEq for wifi_action_tx_req

Source§

fn eq(&self, other: &wifi_action_tx_req) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for wifi_action_tx_req

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.