pub struct BssDescription {
    pub ssid: Ssid,
    pub bssid: Bssid,
    pub bss_type: BssType,
    pub beacon_period: u16,
    pub capability_info: u16,
    pub channel: Channel,
    pub rssi_dbm: i8,
    pub snr_db: i8,
    /* private fields */
}

Fields§

§ssid: Ssid§bssid: Bssid§bss_type: BssType§beacon_period: u16§capability_info: u16§channel: Channel§rssi_dbm: i8§snr_db: i8

Implementations§

source§

impl BssDescription

source

pub fn rates(&self) -> &[SupportedRate]

source

pub fn dtim_period(&self) -> u8

source

pub fn country(&self) -> Option<&[u8]>

source

pub fn rsne(&self) -> Option<&[u8]>

source

pub fn ht_cap(&self) -> Option<Ref<&[u8], HtCapabilities>>

source

pub fn raw_ht_cap(&self) -> Option<HtCapabilities>

source

pub fn ht_op(&self) -> Option<Ref<&[u8], HtOperation>>

source

pub fn rm_enabled_cap(&self) -> Option<Ref<&[u8], RmEnabledCapabilities>>

source

pub fn ext_cap(&self) -> Option<ExtCapabilitiesView<&[u8]>>

source

pub fn raw_ht_op(&self) -> Option<HtOperation>

source

pub fn vht_cap(&self) -> Option<Ref<&[u8], VhtCapabilities>>

source

pub fn raw_vht_cap(&self) -> Option<VhtCapabilities>

source

pub fn vht_op(&self) -> Option<Ref<&[u8], VhtOperation>>

source

pub fn raw_vht_op(&self) -> Option<VhtOperation>

source

pub fn ies(&self) -> &[u8]

source

pub fn is_protected(&self) -> bool

Return bool on whether BSS is protected.

source

pub fn needs_eapol_exchange(&self) -> bool

Return bool on whether BSS has security type that would require exchanging EAPOL frames.

source

pub fn protection(&self) -> Protection

Categorize BSS on what protection it supports.

source

pub fn latest_standard(&self) -> Standard

Get the latest WLAN standard that the BSS supports.

source

pub fn find_wpa_ie(&self) -> Option<&[u8]>

Search for vendor-specific Info Element for WPA. If found, return the body.

source

pub fn wpa_ie(&self) -> Result<WpaIe, Error>

Search for WPA Info Element and parse it. If no WPA Info Element is found, or a WPA Info Element is found but is not valid, return an error.

source

pub fn find_wmm_param(&self) -> Option<&[u8]>

Search for vendor-specific Info Element for WMM Parameter. If found, return the body.

source

pub fn wmm_param(&self) -> Result<Ref<&[u8], WmmParam>, Error>

Search for WMM Parameter Element and parse it. If no WMM Parameter Element is found, return an error.

source

pub fn find_wsc_ie(&self) -> Option<&[u8]>

Search for the WiFi Simple Configuration Info Element. If found, return the body.

source

pub fn probe_resp_wsc(&self) -> Option<ProbeRespWsc>

source

pub fn supports_uapsd(&self) -> bool

source

pub fn supports_ft(&self) -> bool

IEEE 802.11-2016 4.5.4.8

source

pub fn candidacy(&self) -> BssCandidacy

Returns a simplified BssCandidacy which implements PartialOrd.

source

pub fn to_non_obfuscated_string(&self) -> String

Returns a string representation of the BssDescriptionExt. This representation is not suitable for protecting the privacy of an SSID and BSSID.

source

pub fn is_open(&self) -> bool

source

pub fn has_wep_configured(&self) -> bool

source

pub fn has_wpa1_configured(&self) -> bool

source

pub fn has_wpa2_personal_configured(&self) -> bool

source

pub fn has_wpa3_personal_configured(&self) -> bool

Trait Implementations§

source§

impl Clone for BssDescription

source§

fn clone(&self) -> BssDescription

Returns a copy 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 BssDescription

source§

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

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

impl Display for BssDescription

source§

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

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

impl From<BssDescription> for BssDescription

source§

fn from(bss: BssDescription) -> BssDescription

Converts to this type from the input type.
source§

impl PartialEq for BssDescription

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<BssDescription> for BssDescription

§

type Error = Error

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

fn try_from(bss: BssDescription) -> Result<BssDescription, Self::Error>

Performs the conversion.
source§

impl StructuralPartialEq for BssDescription

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
§

impl<T> Encode<Ambiguous1> for T

§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl<T> Encode<Ambiguous2> for T

§

unsafe fn encode( self, _encoder: &mut Encoder<'_>, _offset: usize, _depth: Depth ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> OptionalField for T
where T: ?Sized,

source§

const PRESENT: Presence<Self> = _

source§

const ABSENT: Presence<Self> = _

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

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

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more