pub struct wifi_scan_time {
pub active: wifi_active_scan_time,
pub passive: u32,
pub _has: _Hazzer,
}
Fields§
§active: wifi_active_scan_time
§passive: u32
§_has: _Hazzer
Implementations§
Source§impl wifi_scan_time
impl wifi_scan_time
Sourcepub fn active(&self) -> Option<&wifi_active_scan_time>
pub fn active(&self) -> Option<&wifi_active_scan_time>
Return a reference to active
as an Option
Sourcepub fn set_active(&mut self, value: wifi_active_scan_time) -> &mut Self
pub fn set_active(&mut self, value: wifi_active_scan_time) -> &mut Self
Set the value and presence of active
Sourcepub fn mut_active(&mut self) -> Option<&mut wifi_active_scan_time>
pub fn mut_active(&mut self) -> Option<&mut wifi_active_scan_time>
Return a mutable reference to active
as an Option
Sourcepub fn clear_active(&mut self) -> &mut Self
pub fn clear_active(&mut self) -> &mut Self
Clear the presence of active
Sourcepub fn take_active(&mut self) -> Option<wifi_active_scan_time>
pub fn take_active(&mut self) -> Option<wifi_active_scan_time>
Take the value of active
and clear its presence
Sourcepub fn init_active(self, value: wifi_active_scan_time) -> Self
pub fn init_active(self, value: wifi_active_scan_time) -> Self
Builder method that sets the value of active
. Useful for initializing the message.
Sourcepub fn mut_passive(&mut self) -> &mut u32
pub fn mut_passive(&mut self) -> &mut u32
Return a mutable reference to passive
Sourcepub fn set_passive(&mut self, value: u32) -> &mut Self
pub fn set_passive(&mut self, value: u32) -> &mut Self
Set the value of passive
Sourcepub fn init_passive(self, value: u32) -> Self
pub fn init_passive(self, value: u32) -> Self
Builder method that sets the value of passive
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_scan_time
impl Clone for wifi_scan_time
Source§fn clone(&self) -> wifi_scan_time
fn clone(&self) -> wifi_scan_time
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_scan_time
impl Debug for wifi_scan_time
Source§impl Default for wifi_scan_time
impl Default for wifi_scan_time
Source§fn default() -> wifi_scan_time
fn default() -> wifi_scan_time
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_scan_time
impl MessageDecode for wifi_scan_time
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_scan_time
impl MessageEncode for wifi_scan_time
Source§impl PartialEq for wifi_scan_time
impl PartialEq for wifi_scan_time
Auto Trait Implementations§
impl Freeze for wifi_scan_time
impl RefUnwindSafe for wifi_scan_time
impl Send for wifi_scan_time
impl Sync for wifi_scan_time
impl Unpin for wifi_scan_time
impl UnwindSafe for wifi_scan_time
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