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
impl BssDescription
pub fn rates(&self) -> &[SupportedRate]
pub fn dtim_period(&self) -> u8
pub fn country(&self) -> Option<&[u8]>
pub fn rsne(&self) -> Option<&[u8]>
pub fn ht_cap(&self) -> Option<Ref<&[u8], HtCapabilities>>
pub fn raw_ht_cap(&self) -> Option<HtCapabilities>
pub fn ht_op(&self) -> Option<Ref<&[u8], HtOperation>>
pub fn rm_enabled_cap(&self) -> Option<Ref<&[u8], RmEnabledCapabilities>>
pub fn ext_cap(&self) -> Option<ExtCapabilitiesView<&[u8]>>
pub fn raw_ht_op(&self) -> Option<HtOperation>
pub fn vht_cap(&self) -> Option<Ref<&[u8], VhtCapabilities>>
pub fn raw_vht_cap(&self) -> Option<VhtCapabilities>
pub fn vht_op(&self) -> Option<Ref<&[u8], VhtOperation>>
pub fn raw_vht_op(&self) -> Option<VhtOperation>
pub fn ies(&self) -> &[u8] ⓘ
Sourcepub fn is_protected(&self) -> bool
pub fn is_protected(&self) -> bool
Return bool on whether BSS is protected.
Sourcepub fn needs_eapol_exchange(&self) -> bool
pub fn needs_eapol_exchange(&self) -> bool
Return bool on whether BSS has security type that would require exchanging EAPOL frames.
Sourcepub fn protection(&self) -> Protection
pub fn protection(&self) -> Protection
Categorize BSS on what protection it supports.
Sourcepub fn latest_standard(&self) -> Standard
pub fn latest_standard(&self) -> Standard
Get the latest WLAN standard that the BSS supports.
Sourcepub fn find_wpa_ie(&self) -> Option<&[u8]>
pub fn find_wpa_ie(&self) -> Option<&[u8]>
Search for vendor-specific Info Element for WPA. If found, return the body.
Sourcepub fn wpa_ie(&self) -> Result<WpaIe, Error>
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.
Sourcepub fn find_wmm_param(&self) -> Option<&[u8]>
pub fn find_wmm_param(&self) -> Option<&[u8]>
Search for vendor-specific Info Element for WMM Parameter. If found, return the body.
Sourcepub fn wmm_param(&self) -> Result<Ref<&[u8], WmmParam>, Error>
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.
Sourcepub fn find_wsc_ie(&self) -> Option<&[u8]>
pub fn find_wsc_ie(&self) -> Option<&[u8]>
Search for the WiFi Simple Configuration Info Element. If found, return the body.
pub fn probe_resp_wsc(&self) -> Option<ProbeRespWsc>
pub fn supports_uapsd(&self) -> bool
Sourcepub fn supports_ft(&self) -> bool
pub fn supports_ft(&self) -> bool
IEEE 802.11-2016 4.5.4.8
Sourcepub fn candidacy(&self) -> BssCandidacy
pub fn candidacy(&self) -> BssCandidacy
Returns a simplified BssCandidacy which implements PartialOrd.
Sourcepub fn to_non_obfuscated_string(&self) -> String
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.
pub fn is_open(&self) -> bool
pub fn has_wep_configured(&self) -> bool
pub fn has_wpa1_configured(&self) -> bool
pub fn has_wpa2_personal_configured(&self) -> bool
pub fn has_wpa3_personal_configured(&self) -> bool
Trait Implementations§
Source§impl Clone for BssDescription
impl Clone for BssDescription
Source§fn clone(&self) -> BssDescription
fn clone(&self) -> BssDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BssDescription
impl Debug for BssDescription
Source§impl Display for BssDescription
impl Display for BssDescription
Source§impl From<BssDescription> for BssDescription
impl From<BssDescription> for BssDescription
Source§fn from(bss: BssDescription) -> BssDescription
fn from(bss: BssDescription) -> BssDescription
Source§impl PartialEq for BssDescription
impl PartialEq for BssDescription
Source§impl TryFrom<BssDescription> for BssDescription
impl TryFrom<BssDescription> for BssDescription
impl StructuralPartialEq for BssDescription
Auto Trait Implementations§
impl Freeze for BssDescription
impl RefUnwindSafe for BssDescription
impl Send for BssDescription
impl Sync for BssDescription
impl Unpin for BssDescription
impl UnwindSafe for BssDescription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)