wifi_ap_config

Struct wifi_ap_config 

Source
pub struct wifi_ap_config {
Show 13 fields pub ssid: Vec<u8, 33>, pub password: Vec<u8, 64>, pub ssid_len: u32, pub channel: u32, pub authmode: i32, pub ssid_hidden: u32, pub max_connection: u32, pub beacon_interval: u32, pub pairwise_cipher: i32, pub ftm_responder: bool, pub pmf_cfg: wifi_pmf_config, pub sae_pwe_h2e: i32, pub _has: _Hazzer,
}

Fields§

§ssid: Vec<u8, 33>§password: Vec<u8, 64>§ssid_len: u32§channel: u32§authmode: i32§ssid_hidden: u32§max_connection: u32§beacon_interval: u32§pairwise_cipher: i32§ftm_responder: bool§pmf_cfg: wifi_pmf_config§sae_pwe_h2e: i32§_has: _Hazzer

Implementations§

Source§

impl wifi_ap_config

Source

pub fn ssid(&self) -> &Vec<u8, 33>

Return a reference to ssid

Source

pub fn mut_ssid(&mut self) -> &mut Vec<u8, 33>

Return a mutable reference to ssid

Source

pub fn set_ssid(&mut self, value: Vec<u8, 33>) -> &mut Self

Set the value of ssid

Source

pub fn init_ssid(self, value: Vec<u8, 33>) -> Self

Builder method that sets the value of ssid. Useful for initializing the message.

Source

pub fn password(&self) -> &Vec<u8, 64>

Return a reference to password

Source

pub fn mut_password(&mut self) -> &mut Vec<u8, 64>

Return a mutable reference to password

Source

pub fn set_password(&mut self, value: Vec<u8, 64>) -> &mut Self

Set the value of password

Source

pub fn init_password(self, value: Vec<u8, 64>) -> Self

Builder method that sets the value of password. Useful for initializing the message.

Source

pub fn ssid_len(&self) -> &u32

Return a reference to ssid_len

Source

pub fn mut_ssid_len(&mut self) -> &mut u32

Return a mutable reference to ssid_len

Source

pub fn set_ssid_len(&mut self, value: u32) -> &mut Self

Set the value of ssid_len

Source

pub fn init_ssid_len(self, value: u32) -> Self

Builder method that sets the value of ssid_len. Useful for initializing the message.

Source

pub fn channel(&self) -> &u32

Return a reference to channel

Source

pub fn mut_channel(&mut self) -> &mut u32

Return a mutable reference to channel

Source

pub fn set_channel(&mut self, value: u32) -> &mut Self

Set the value of channel

Source

pub fn init_channel(self, value: u32) -> Self

Builder method that sets the value of channel. Useful for initializing the message.

Source

pub fn authmode(&self) -> &i32

Return a reference to authmode

Source

pub fn mut_authmode(&mut self) -> &mut i32

Return a mutable reference to authmode

Source

pub fn set_authmode(&mut self, value: i32) -> &mut Self

Set the value of authmode

Source

pub fn init_authmode(self, value: i32) -> Self

Builder method that sets the value of authmode. Useful for initializing the message.

Source

pub fn ssid_hidden(&self) -> &u32

Return a reference to ssid_hidden

Source

pub fn mut_ssid_hidden(&mut self) -> &mut u32

Return a mutable reference to ssid_hidden

Source

pub fn set_ssid_hidden(&mut self, value: u32) -> &mut Self

Set the value of ssid_hidden

Source

pub fn init_ssid_hidden(self, value: u32) -> Self

Builder method that sets the value of ssid_hidden. Useful for initializing the message.

Source

pub fn max_connection(&self) -> &u32

Return a reference to max_connection

Source

pub fn mut_max_connection(&mut self) -> &mut u32

Return a mutable reference to max_connection

Source

pub fn set_max_connection(&mut self, value: u32) -> &mut Self

Set the value of max_connection

Source

pub fn init_max_connection(self, value: u32) -> Self

Builder method that sets the value of max_connection. Useful for initializing the message.

Source

pub fn beacon_interval(&self) -> &u32

Return a reference to beacon_interval

Source

pub fn mut_beacon_interval(&mut self) -> &mut u32

Return a mutable reference to beacon_interval

Source

pub fn set_beacon_interval(&mut self, value: u32) -> &mut Self

Set the value of beacon_interval

Source

pub fn init_beacon_interval(self, value: u32) -> Self

Builder method that sets the value of beacon_interval. Useful for initializing the message.

Source

pub fn pairwise_cipher(&self) -> &i32

Return a reference to pairwise_cipher

Source

pub fn mut_pairwise_cipher(&mut self) -> &mut i32

Return a mutable reference to pairwise_cipher

Source

pub fn set_pairwise_cipher(&mut self, value: i32) -> &mut Self

Set the value of pairwise_cipher

Source

pub fn init_pairwise_cipher(self, value: i32) -> Self

Builder method that sets the value of pairwise_cipher. Useful for initializing the message.

Source

pub fn ftm_responder(&self) -> &bool

Return a reference to ftm_responder

Source

pub fn mut_ftm_responder(&mut self) -> &mut bool

Return a mutable reference to ftm_responder

Source

pub fn set_ftm_responder(&mut self, value: bool) -> &mut Self

Set the value of ftm_responder

Source

pub fn init_ftm_responder(self, value: bool) -> Self

Builder method that sets the value of ftm_responder. Useful for initializing the message.

Source

pub fn pmf_cfg(&self) -> Option<&wifi_pmf_config>

Return a reference to pmf_cfg as an Option

Source

pub fn set_pmf_cfg(&mut self, value: wifi_pmf_config) -> &mut Self

Set the value and presence of pmf_cfg

Source

pub fn mut_pmf_cfg(&mut self) -> Option<&mut wifi_pmf_config>

Return a mutable reference to pmf_cfg as an Option

Source

pub fn clear_pmf_cfg(&mut self) -> &mut Self

Clear the presence of pmf_cfg

Source

pub fn take_pmf_cfg(&mut self) -> Option<wifi_pmf_config>

Take the value of pmf_cfg and clear its presence

Source

pub fn init_pmf_cfg(self, value: wifi_pmf_config) -> Self

Builder method that sets the value of pmf_cfg. Useful for initializing the message.

Source

pub fn sae_pwe_h2e(&self) -> &i32

Return a reference to sae_pwe_h2e

Source

pub fn mut_sae_pwe_h2e(&mut self) -> &mut i32

Return a mutable reference to sae_pwe_h2e

Source

pub fn set_sae_pwe_h2e(&mut self, value: i32) -> &mut Self

Set the value of sae_pwe_h2e

Source

pub fn init_sae_pwe_h2e(self, value: i32) -> Self

Builder method that sets the value of sae_pwe_h2e. Useful for initializing the message.

Trait Implementations§

Source§

impl Clone for wifi_ap_config

Source§

fn clone(&self) -> wifi_ap_config

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for wifi_ap_config

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for wifi_ap_config

Source§

fn default() -> wifi_ap_config

Returns the “default value” for a type. Read more
Source§

impl MessageDecode for wifi_ap_config

Source§

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 more
Source§

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,

Decode an instance of the message from the decoder as a length-delimited record, starting with a length prefix.
Source§

impl MessageEncode for wifi_ap_config

Source§

const MAX_SIZE: Option<usize>

Maximum encoded size of the message on the wire. Read more
Source§

fn encode<IMPL_MICROPB_WRITE: PbWrite>( &self, encoder: &mut PbEncoder<IMPL_MICROPB_WRITE>, ) -> Result<(), IMPL_MICROPB_WRITE::Error>

Encode this message using the encoder.
Source§

fn compute_size(&self) -> usize

Compute the size of this message on the wire.
Source§

fn encode_len_delimited<W>( &self, encoder: &mut PbEncoder<W>, ) -> Result<(), <W as PbWrite>::Error>
where W: PbWrite,

Encode this message as a length-delimited record, starting with a length prefix.
Source§

impl PartialEq for wifi_ap_config

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.