pub struct wifi_event_sta_authmode_change {
pub old_mode: i32,
pub new_mode: i32,
}
Fields§
§old_mode: i32
§new_mode: i32
Implementations§
Source§impl wifi_event_sta_authmode_change
impl wifi_event_sta_authmode_change
Sourcepub fn mut_old_mode(&mut self) -> &mut i32
pub fn mut_old_mode(&mut self) -> &mut i32
Return a mutable reference to old_mode
Sourcepub fn set_old_mode(&mut self, value: i32) -> &mut Self
pub fn set_old_mode(&mut self, value: i32) -> &mut Self
Set the value of old_mode
Sourcepub fn init_old_mode(self, value: i32) -> Self
pub fn init_old_mode(self, value: i32) -> Self
Builder method that sets the value of old_mode
. Useful for initializing the message.
Sourcepub fn mut_new_mode(&mut self) -> &mut i32
pub fn mut_new_mode(&mut self) -> &mut i32
Return a mutable reference to new_mode
Sourcepub fn set_new_mode(&mut self, value: i32) -> &mut Self
pub fn set_new_mode(&mut self, value: i32) -> &mut Self
Set the value of new_mode
Sourcepub fn init_new_mode(self, value: i32) -> Self
pub fn init_new_mode(self, value: i32) -> Self
Builder method that sets the value of new_mode
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_event_sta_authmode_change
impl Clone for wifi_event_sta_authmode_change
Source§fn clone(&self) -> wifi_event_sta_authmode_change
fn clone(&self) -> wifi_event_sta_authmode_change
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_sta_authmode_change
impl Default for wifi_event_sta_authmode_change
Source§fn default() -> wifi_event_sta_authmode_change
fn default() -> wifi_event_sta_authmode_change
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_event_sta_authmode_change
impl MessageDecode for wifi_event_sta_authmode_change
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_sta_authmode_change
impl MessageEncode for wifi_event_sta_authmode_change
Source§impl PartialEq for wifi_event_sta_authmode_change
impl PartialEq for wifi_event_sta_authmode_change
Source§fn eq(&self, other: &wifi_event_sta_authmode_change) -> bool
fn eq(&self, other: &wifi_event_sta_authmode_change) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for wifi_event_sta_authmode_change
Auto Trait Implementations§
impl Freeze for wifi_event_sta_authmode_change
impl RefUnwindSafe for wifi_event_sta_authmode_change
impl Send for wifi_event_sta_authmode_change
impl Sync for wifi_event_sta_authmode_change
impl Unpin for wifi_event_sta_authmode_change
impl UnwindSafe for wifi_event_sta_authmode_change
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