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