pub struct wifi_event_sta_disconnected {
pub ssid: Vec<u8, 33>,
pub ssid_len: u32,
pub bssid: Vec<u8, 6>,
pub reason: u32,
pub rssi: i32,
}
Fields§
§ssid: Vec<u8, 33>
§ssid_len: u32
§bssid: Vec<u8, 6>
§reason: u32
§rssi: i32
Implementations§
Source§impl wifi_event_sta_disconnected
impl wifi_event_sta_disconnected
Sourcepub fn init_ssid(self, value: Vec<u8, 33>) -> Self
pub fn init_ssid(self, value: Vec<u8, 33>) -> Self
Builder method that sets the value of ssid
. Useful for initializing the message.
Sourcepub fn mut_ssid_len(&mut self) -> &mut u32
pub fn mut_ssid_len(&mut self) -> &mut u32
Return a mutable reference to ssid_len
Sourcepub fn set_ssid_len(&mut self, value: u32) -> &mut Self
pub fn set_ssid_len(&mut self, value: u32) -> &mut Self
Set the value of ssid_len
Sourcepub fn init_ssid_len(self, value: u32) -> Self
pub fn init_ssid_len(self, value: u32) -> Self
Builder method that sets the value of ssid_len
. Useful for initializing the message.
Sourcepub fn init_bssid(self, value: Vec<u8, 6>) -> Self
pub fn init_bssid(self, value: Vec<u8, 6>) -> Self
Builder method that sets the value of bssid
. Useful for initializing the message.
Sourcepub fn mut_reason(&mut self) -> &mut u32
pub fn mut_reason(&mut self) -> &mut u32
Return a mutable reference to reason
Sourcepub fn set_reason(&mut self, value: u32) -> &mut Self
pub fn set_reason(&mut self, value: u32) -> &mut Self
Set the value of reason
Sourcepub fn init_reason(self, value: u32) -> Self
pub fn init_reason(self, value: u32) -> Self
Builder method that sets the value of reason
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_event_sta_disconnected
impl Clone for wifi_event_sta_disconnected
Source§fn clone(&self) -> wifi_event_sta_disconnected
fn clone(&self) -> wifi_event_sta_disconnected
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_event_sta_disconnected
impl Debug for wifi_event_sta_disconnected
Source§impl Default for wifi_event_sta_disconnected
impl Default for wifi_event_sta_disconnected
Source§fn default() -> wifi_event_sta_disconnected
fn default() -> wifi_event_sta_disconnected
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_event_sta_disconnected
impl MessageDecode for wifi_event_sta_disconnected
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_disconnected
impl MessageEncode for wifi_event_sta_disconnected
impl StructuralPartialEq for wifi_event_sta_disconnected
Auto Trait Implementations§
impl Freeze for wifi_event_sta_disconnected
impl RefUnwindSafe for wifi_event_sta_disconnected
impl Send for wifi_event_sta_disconnected
impl Sync for wifi_event_sta_disconnected
impl Unpin for wifi_event_sta_disconnected
impl UnwindSafe for wifi_event_sta_disconnected
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