pub struct Rpc_Event_AP_StaDisconnected {
pub resp: i32,
pub mac: Vec<u8, 6>,
pub aid: u32,
pub is_mesh_child: bool,
pub reason: u32,
}
Fields§
§resp: i32
§mac: Vec<u8, 6>
§aid: u32
§is_mesh_child: bool
§reason: u32
Implementations§
Source§impl Rpc_Event_AP_StaDisconnected
impl Rpc_Event_AP_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 init_mac(self, value: Vec<u8, 6>) -> Self
pub fn init_mac(self, value: Vec<u8, 6>) -> Self
Builder method that sets the value of mac
. Useful for initializing the message.
Sourcepub fn init_aid(self, value: u32) -> Self
pub fn init_aid(self, value: u32) -> Self
Builder method that sets the value of aid
. Useful for initializing the message.
Sourcepub fn is_mesh_child(&self) -> &bool
pub fn is_mesh_child(&self) -> &bool
Return a reference to is_mesh_child
Sourcepub fn mut_is_mesh_child(&mut self) -> &mut bool
pub fn mut_is_mesh_child(&mut self) -> &mut bool
Return a mutable reference to is_mesh_child
Sourcepub fn set_is_mesh_child(&mut self, value: bool) -> &mut Self
pub fn set_is_mesh_child(&mut self, value: bool) -> &mut Self
Set the value of is_mesh_child
Sourcepub fn init_is_mesh_child(self, value: bool) -> Self
pub fn init_is_mesh_child(self, value: bool) -> Self
Builder method that sets the value of is_mesh_child
. 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 Rpc_Event_AP_StaDisconnected
impl Clone for Rpc_Event_AP_StaDisconnected
Source§fn clone(&self) -> Rpc_Event_AP_StaDisconnected
fn clone(&self) -> Rpc_Event_AP_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_AP_StaDisconnected
impl Debug for Rpc_Event_AP_StaDisconnected
Source§impl Default for Rpc_Event_AP_StaDisconnected
impl Default for Rpc_Event_AP_StaDisconnected
Source§fn default() -> Rpc_Event_AP_StaDisconnected
fn default() -> Rpc_Event_AP_StaDisconnected
Returns the “default value” for a type. Read more
Source§impl MessageDecode for Rpc_Event_AP_StaDisconnected
impl MessageDecode for Rpc_Event_AP_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_AP_StaDisconnected
impl MessageEncode for Rpc_Event_AP_StaDisconnected
Source§impl PartialEq for Rpc_Event_AP_StaDisconnected
impl PartialEq for Rpc_Event_AP_StaDisconnected
Source§fn eq(&self, other: &Rpc_Event_AP_StaDisconnected) -> bool
fn eq(&self, other: &Rpc_Event_AP_StaDisconnected) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for Rpc_Event_AP_StaDisconnected
Auto Trait Implementations§
impl Freeze for Rpc_Event_AP_StaDisconnected
impl RefUnwindSafe for Rpc_Event_AP_StaDisconnected
impl Send for Rpc_Event_AP_StaDisconnected
impl Sync for Rpc_Event_AP_StaDisconnected
impl Unpin for Rpc_Event_AP_StaDisconnected
impl UnwindSafe for Rpc_Event_AP_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