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
impl wifi_action_tx_req
Sourcepub fn init_ifx(self, value: i32) -> Self
pub fn init_ifx(self, value: i32) -> Self
Builder method that sets the value of ifx
. Useful for initializing the message.
Sourcepub fn mut_dest_mac(&mut self) -> &mut Vec<u8, 6>
pub fn mut_dest_mac(&mut self) -> &mut Vec<u8, 6>
Return a mutable reference to dest_mac
Sourcepub fn set_dest_mac(&mut self, value: Vec<u8, 6>) -> &mut Self
pub fn set_dest_mac(&mut self, value: Vec<u8, 6>) -> &mut Self
Set the value of dest_mac
Sourcepub fn init_dest_mac(self, value: Vec<u8, 6>) -> Self
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.
Sourcepub fn mut_no_ack(&mut self) -> &mut bool
pub fn mut_no_ack(&mut self) -> &mut bool
Return a mutable reference to no_ack
Sourcepub fn set_no_ack(&mut self, value: bool) -> &mut Self
pub fn set_no_ack(&mut self, value: bool) -> &mut Self
Set the value of no_ack
Sourcepub fn init_no_ack(self, value: bool) -> Self
pub fn init_no_ack(self, value: bool) -> Self
Builder method that sets the value of no_ack
. Useful for initializing the message.
Sourcepub fn mut_data_len(&mut self) -> &mut u32
pub fn mut_data_len(&mut self) -> &mut u32
Return a mutable reference to data_len
Sourcepub fn set_data_len(&mut self, value: u32) -> &mut Self
pub fn set_data_len(&mut self, value: u32) -> &mut Self
Set the value of data_len
Sourcepub fn init_data_len(self, value: u32) -> Self
pub fn init_data_len(self, value: u32) -> Self
Builder method that sets the value of data_len
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_action_tx_req
impl Clone for wifi_action_tx_req
Source§fn clone(&self) -> wifi_action_tx_req
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for wifi_action_tx_req
impl Debug for wifi_action_tx_req
Source§impl Default for wifi_action_tx_req
impl Default for wifi_action_tx_req
Source§fn default() -> wifi_action_tx_req
fn default() -> wifi_action_tx_req
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_action_tx_req
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>>
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 moreSource§fn decode_from_bytes(
&mut self,
bytes: &[u8],
) -> Result<(), DecodeError<Infallible>>
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,
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
impl MessageEncode for wifi_action_tx_req
Source§impl PartialEq for wifi_action_tx_req
impl PartialEq for wifi_action_tx_req
impl StructuralPartialEq for wifi_action_tx_req
Auto Trait Implementations§
impl Freeze for wifi_action_tx_req
impl RefUnwindSafe for wifi_action_tx_req
impl Send for wifi_action_tx_req
impl Sync for wifi_action_tx_req
impl Unpin for wifi_action_tx_req
impl UnwindSafe for wifi_action_tx_req
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