pub struct wifi_event_ap_wps_rg_fail_reason {
pub reason: i32,
pub peer_macaddr: Vec<u8, 6>,
}
Fields§
§reason: i32
§peer_macaddr: Vec<u8, 6>
Implementations§
Source§impl wifi_event_ap_wps_rg_fail_reason
impl wifi_event_ap_wps_rg_fail_reason
Sourcepub fn mut_reason(&mut self) -> &mut i32
pub fn mut_reason(&mut self) -> &mut i32
Return a mutable reference to reason
Sourcepub fn set_reason(&mut self, value: i32) -> &mut Self
pub fn set_reason(&mut self, value: i32) -> &mut Self
Set the value of reason
Sourcepub fn init_reason(self, value: i32) -> Self
pub fn init_reason(self, value: i32) -> Self
Builder method that sets the value of reason
. Useful for initializing the message.
Sourcepub fn peer_macaddr(&self) -> &Vec<u8, 6>
pub fn peer_macaddr(&self) -> &Vec<u8, 6>
Return a reference to peer_macaddr
Sourcepub fn mut_peer_macaddr(&mut self) -> &mut Vec<u8, 6>
pub fn mut_peer_macaddr(&mut self) -> &mut Vec<u8, 6>
Return a mutable reference to peer_macaddr
Sourcepub fn set_peer_macaddr(&mut self, value: Vec<u8, 6>) -> &mut Self
pub fn set_peer_macaddr(&mut self, value: Vec<u8, 6>) -> &mut Self
Set the value of peer_macaddr
Sourcepub fn init_peer_macaddr(self, value: Vec<u8, 6>) -> Self
pub fn init_peer_macaddr(self, value: Vec<u8, 6>) -> Self
Builder method that sets the value of peer_macaddr
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_event_ap_wps_rg_fail_reason
impl Clone for wifi_event_ap_wps_rg_fail_reason
Source§fn clone(&self) -> wifi_event_ap_wps_rg_fail_reason
fn clone(&self) -> wifi_event_ap_wps_rg_fail_reason
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 Default for wifi_event_ap_wps_rg_fail_reason
impl Default for wifi_event_ap_wps_rg_fail_reason
Source§fn default() -> wifi_event_ap_wps_rg_fail_reason
fn default() -> wifi_event_ap_wps_rg_fail_reason
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_event_ap_wps_rg_fail_reason
impl MessageDecode for wifi_event_ap_wps_rg_fail_reason
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_event_ap_wps_rg_fail_reason
impl MessageEncode for wifi_event_ap_wps_rg_fail_reason
Source§impl PartialEq for wifi_event_ap_wps_rg_fail_reason
impl PartialEq for wifi_event_ap_wps_rg_fail_reason
Source§fn eq(&self, other: &wifi_event_ap_wps_rg_fail_reason) -> bool
fn eq(&self, other: &wifi_event_ap_wps_rg_fail_reason) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for wifi_event_ap_wps_rg_fail_reason
Auto Trait Implementations§
impl Freeze for wifi_event_ap_wps_rg_fail_reason
impl RefUnwindSafe for wifi_event_ap_wps_rg_fail_reason
impl Send for wifi_event_ap_wps_rg_fail_reason
impl Sync for wifi_event_ap_wps_rg_fail_reason
impl Unpin for wifi_event_ap_wps_rg_fail_reason
impl UnwindSafe for wifi_event_ap_wps_rg_fail_reason
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