pub struct wifi_ftm_initiator_cfg {
pub resp_mac: Vec<u8, 6>,
pub channel: u32,
pub frm_count: u32,
pub burst_period: u32,
}
Fields§
§resp_mac: Vec<u8, 6>
§channel: u32
§frm_count: u32
§burst_period: u32
Implementations§
Source§impl wifi_ftm_initiator_cfg
impl wifi_ftm_initiator_cfg
Sourcepub fn mut_resp_mac(&mut self) -> &mut Vec<u8, 6>
pub fn mut_resp_mac(&mut self) -> &mut Vec<u8, 6>
Return a mutable reference to resp_mac
Sourcepub fn set_resp_mac(&mut self, value: Vec<u8, 6>) -> &mut Self
pub fn set_resp_mac(&mut self, value: Vec<u8, 6>) -> &mut Self
Set the value of resp_mac
Sourcepub fn init_resp_mac(self, value: Vec<u8, 6>) -> Self
pub fn init_resp_mac(self, value: Vec<u8, 6>) -> Self
Builder method that sets the value of resp_mac
. Useful for initializing the message.
Sourcepub fn mut_channel(&mut self) -> &mut u32
pub fn mut_channel(&mut self) -> &mut u32
Return a mutable reference to channel
Sourcepub fn set_channel(&mut self, value: u32) -> &mut Self
pub fn set_channel(&mut self, value: u32) -> &mut Self
Set the value of channel
Sourcepub fn init_channel(self, value: u32) -> Self
pub fn init_channel(self, value: u32) -> Self
Builder method that sets the value of channel
. Useful for initializing the message.
Sourcepub fn mut_frm_count(&mut self) -> &mut u32
pub fn mut_frm_count(&mut self) -> &mut u32
Return a mutable reference to frm_count
Sourcepub fn set_frm_count(&mut self, value: u32) -> &mut Self
pub fn set_frm_count(&mut self, value: u32) -> &mut Self
Set the value of frm_count
Sourcepub fn init_frm_count(self, value: u32) -> Self
pub fn init_frm_count(self, value: u32) -> Self
Builder method that sets the value of frm_count
. Useful for initializing the message.
Sourcepub fn burst_period(&self) -> &u32
pub fn burst_period(&self) -> &u32
Return a reference to burst_period
Sourcepub fn mut_burst_period(&mut self) -> &mut u32
pub fn mut_burst_period(&mut self) -> &mut u32
Return a mutable reference to burst_period
Sourcepub fn set_burst_period(&mut self, value: u32) -> &mut Self
pub fn set_burst_period(&mut self, value: u32) -> &mut Self
Set the value of burst_period
Sourcepub fn init_burst_period(self, value: u32) -> Self
pub fn init_burst_period(self, value: u32) -> Self
Builder method that sets the value of burst_period
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_ftm_initiator_cfg
impl Clone for wifi_ftm_initiator_cfg
Source§fn clone(&self) -> wifi_ftm_initiator_cfg
fn clone(&self) -> wifi_ftm_initiator_cfg
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_ftm_initiator_cfg
impl Debug for wifi_ftm_initiator_cfg
Source§impl Default for wifi_ftm_initiator_cfg
impl Default for wifi_ftm_initiator_cfg
Source§fn default() -> wifi_ftm_initiator_cfg
fn default() -> wifi_ftm_initiator_cfg
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_ftm_initiator_cfg
impl MessageDecode for wifi_ftm_initiator_cfg
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_ftm_initiator_cfg
impl MessageEncode for wifi_ftm_initiator_cfg
Source§impl PartialEq for wifi_ftm_initiator_cfg
impl PartialEq for wifi_ftm_initiator_cfg
impl StructuralPartialEq for wifi_ftm_initiator_cfg
Auto Trait Implementations§
impl Freeze for wifi_ftm_initiator_cfg
impl RefUnwindSafe for wifi_ftm_initiator_cfg
impl Send for wifi_ftm_initiator_cfg
impl Sync for wifi_ftm_initiator_cfg
impl Unpin for wifi_ftm_initiator_cfg
impl UnwindSafe for wifi_ftm_initiator_cfg
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