pub struct Rpc_Event_StaDisconnected {
pub resp: i32,
pub sta_disconnected: wifi_event_sta_disconnected,
pub _has: _Hazzer,
}
Fields§
§resp: i32
§sta_disconnected: wifi_event_sta_disconnected
§_has: _Hazzer
Implementations§
Source§impl Rpc_Event_StaDisconnected
impl Rpc_Event_StaDisconnected
Sourcepub fn init_resp(self, value: i32) -> Self
pub fn init_resp(self, value: i32) -> Self
Builder method that sets the value of resp
. Useful for initializing the message.
Sourcepub fn sta_disconnected(&self) -> Option<&wifi_event_sta_disconnected>
pub fn sta_disconnected(&self) -> Option<&wifi_event_sta_disconnected>
Return a reference to sta_disconnected
as an Option
Sourcepub fn set_sta_disconnected(
&mut self,
value: wifi_event_sta_disconnected,
) -> &mut Self
pub fn set_sta_disconnected( &mut self, value: wifi_event_sta_disconnected, ) -> &mut Self
Set the value and presence of sta_disconnected
Sourcepub fn mut_sta_disconnected(
&mut self,
) -> Option<&mut wifi_event_sta_disconnected>
pub fn mut_sta_disconnected( &mut self, ) -> Option<&mut wifi_event_sta_disconnected>
Return a mutable reference to sta_disconnected
as an Option
Sourcepub fn clear_sta_disconnected(&mut self) -> &mut Self
pub fn clear_sta_disconnected(&mut self) -> &mut Self
Clear the presence of sta_disconnected
Sourcepub fn take_sta_disconnected(&mut self) -> Option<wifi_event_sta_disconnected>
pub fn take_sta_disconnected(&mut self) -> Option<wifi_event_sta_disconnected>
Take the value of sta_disconnected
and clear its presence
Sourcepub fn init_sta_disconnected(self, value: wifi_event_sta_disconnected) -> Self
pub fn init_sta_disconnected(self, value: wifi_event_sta_disconnected) -> Self
Builder method that sets the value of sta_disconnected
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for Rpc_Event_StaDisconnected
impl Clone for Rpc_Event_StaDisconnected
Source§fn clone(&self) -> Rpc_Event_StaDisconnected
fn clone(&self) -> Rpc_Event_StaDisconnected
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 Rpc_Event_StaDisconnected
impl Debug for Rpc_Event_StaDisconnected
Source§impl Default for Rpc_Event_StaDisconnected
impl Default for Rpc_Event_StaDisconnected
Source§fn default() -> Rpc_Event_StaDisconnected
fn default() -> Rpc_Event_StaDisconnected
Returns the “default value” for a type. Read more
Source§impl MessageDecode for Rpc_Event_StaDisconnected
impl MessageDecode for Rpc_Event_StaDisconnected
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 Rpc_Event_StaDisconnected
impl MessageEncode for Rpc_Event_StaDisconnected
Auto Trait Implementations§
impl Freeze for Rpc_Event_StaDisconnected
impl RefUnwindSafe for Rpc_Event_StaDisconnected
impl Send for Rpc_Event_StaDisconnected
impl Sync for Rpc_Event_StaDisconnected
impl Unpin for Rpc_Event_StaDisconnected
impl UnwindSafe for Rpc_Event_StaDisconnected
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