wifi_ap_record

Struct wifi_ap_record 

Source
pub struct wifi_ap_record {
Show 16 fields pub bssid: Vec<u8, 6>, pub ssid: Vec<u8, 33>, pub primary: u32, pub second: i32, pub rssi: i32, pub authmode: i32, pub pairwise_cipher: i32, pub group_cipher: i32, pub ant: i32, pub bitmask: u32, pub country: wifi_country, pub he_ap: wifi_he_ap_info, pub bandwidth: u32, pub vht_ch_freq1: u32, pub vht_ch_freq2: u32, pub _has: _Hazzer,
}

Fields§

§bssid: Vec<u8, 6>§ssid: Vec<u8, 33>§primary: u32§second: i32§rssi: i32§authmode: i32§pairwise_cipher: i32§group_cipher: i32§ant: i32§bitmask: u32§country: wifi_country§he_ap: wifi_he_ap_info§bandwidth: u32§vht_ch_freq1: u32§vht_ch_freq2: u32§_has: _Hazzer

Implementations§

Source§

impl wifi_ap_record

Source

pub fn bssid(&self) -> &Vec<u8, 6>

Return a reference to bssid

Source

pub fn mut_bssid(&mut self) -> &mut Vec<u8, 6>

Return a mutable reference to bssid

Source

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

Set the value of bssid

Source

pub fn init_bssid(self, value: Vec<u8, 6>) -> Self

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

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 primary(&self) -> &u32

Return a reference to primary

Source

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

Return a mutable reference to primary

Source

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

Set the value of primary

Source

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

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

Source

pub fn second(&self) -> &i32

Return a reference to second

Source

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

Return a mutable reference to second

Source

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

Set the value of second

Source

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

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

Source

pub fn rssi(&self) -> &i32

Return a reference to rssi

Source

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

Return a mutable reference to rssi

Source

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

Set the value of rssi

Source

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

Builder method that sets the value of rssi. 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 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 group_cipher(&self) -> &i32

Return a reference to group_cipher

Source

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

Return a mutable reference to group_cipher

Source

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

Set the value of group_cipher

Source

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

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

Source

pub fn ant(&self) -> &i32

Return a reference to ant

Source

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

Return a mutable reference to ant

Source

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

Set the value of ant

Source

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

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

Source

pub fn bitmask(&self) -> &u32

Return a reference to bitmask

Source

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

Return a mutable reference to bitmask

Source

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

Set the value of bitmask

Source

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

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

Source

pub fn country(&self) -> Option<&wifi_country>

Return a reference to country as an Option

Source

pub fn set_country(&mut self, value: wifi_country) -> &mut Self

Set the value and presence of country

Source

pub fn mut_country(&mut self) -> Option<&mut wifi_country>

Return a mutable reference to country as an Option

Source

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

Clear the presence of country

Source

pub fn take_country(&mut self) -> Option<wifi_country>

Take the value of country and clear its presence

Source

pub fn init_country(self, value: wifi_country) -> Self

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

Source

pub fn he_ap(&self) -> Option<&wifi_he_ap_info>

Return a reference to he_ap as an Option

Source

pub fn set_he_ap(&mut self, value: wifi_he_ap_info) -> &mut Self

Set the value and presence of he_ap

Source

pub fn mut_he_ap(&mut self) -> Option<&mut wifi_he_ap_info>

Return a mutable reference to he_ap as an Option

Source

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

Clear the presence of he_ap

Source

pub fn take_he_ap(&mut self) -> Option<wifi_he_ap_info>

Take the value of he_ap and clear its presence

Source

pub fn init_he_ap(self, value: wifi_he_ap_info) -> Self

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

Source

pub fn bandwidth(&self) -> &u32

Return a reference to bandwidth

Source

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

Return a mutable reference to bandwidth

Source

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

Set the value of bandwidth

Source

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

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

Source

pub fn vht_ch_freq1(&self) -> &u32

Return a reference to vht_ch_freq1

Source

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

Return a mutable reference to vht_ch_freq1

Source

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

Set the value of vht_ch_freq1

Source

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

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

Source

pub fn vht_ch_freq2(&self) -> &u32

Return a reference to vht_ch_freq2

Source

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

Return a mutable reference to vht_ch_freq2

Source

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

Set the value of vht_ch_freq2

Source

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

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

Trait Implementations§

Source§

impl Clone for wifi_ap_record

Source§

fn clone(&self) -> wifi_ap_record

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_record

Source§

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

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

impl Default for wifi_ap_record

Source§

fn default() -> wifi_ap_record

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

impl MessageDecode for wifi_ap_record

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_record

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_record

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.