pub struct wifi_protocols {
pub ghz_2g: u32,
pub ghz_5g: u32,
}
Fields§
§ghz_2g: u32
§ghz_5g: u32
Implementations§
Source§impl wifi_protocols
impl wifi_protocols
Sourcepub fn mut_ghz_2g(&mut self) -> &mut u32
pub fn mut_ghz_2g(&mut self) -> &mut u32
Return a mutable reference to ghz_2g
Sourcepub fn set_ghz_2g(&mut self, value: u32) -> &mut Self
pub fn set_ghz_2g(&mut self, value: u32) -> &mut Self
Set the value of ghz_2g
Sourcepub fn init_ghz_2g(self, value: u32) -> Self
pub fn init_ghz_2g(self, value: u32) -> Self
Builder method that sets the value of ghz_2g
. Useful for initializing the message.
Sourcepub fn mut_ghz_5g(&mut self) -> &mut u32
pub fn mut_ghz_5g(&mut self) -> &mut u32
Return a mutable reference to ghz_5g
Sourcepub fn set_ghz_5g(&mut self, value: u32) -> &mut Self
pub fn set_ghz_5g(&mut self, value: u32) -> &mut Self
Set the value of ghz_5g
Sourcepub fn init_ghz_5g(self, value: u32) -> Self
pub fn init_ghz_5g(self, value: u32) -> Self
Builder method that sets the value of ghz_5g
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_protocols
impl Clone for wifi_protocols
Source§fn clone(&self) -> wifi_protocols
fn clone(&self) -> wifi_protocols
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_protocols
impl Debug for wifi_protocols
Source§impl Default for wifi_protocols
impl Default for wifi_protocols
Source§fn default() -> wifi_protocols
fn default() -> wifi_protocols
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_protocols
impl MessageDecode for wifi_protocols
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_protocols
impl MessageEncode for wifi_protocols
Source§impl PartialEq for wifi_protocols
impl PartialEq for wifi_protocols
impl StructuralPartialEq for wifi_protocols
Auto Trait Implementations§
impl Freeze for wifi_protocols
impl RefUnwindSafe for wifi_protocols
impl Send for wifi_protocols
impl Sync for wifi_protocols
impl Unpin for wifi_protocols
impl UnwindSafe for wifi_protocols
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