#[non_exhaustive]pub struct AccessPointInfo {
pub ssid: String,
pub bssid: [u8; 6],
pub channel: u8,
pub secondary_channel: SecondaryChannel,
pub signal_strength: i8,
pub auth_method: Option<AuthMethod>,
pub country: Option<Country>,
}Expand description
Information about a detected Wi-Fi access point.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ssid: StringThe SSID of the access point.
bssid: [u8; 6]The BSSID (MAC address) of the access point.
channel: u8The channel the access point is operating on.
secondary_channel: SecondaryChannelThe secondary channel configuration of the access point.
signal_strength: i8The signal strength of the access point (RSSI).
auth_method: Option<AuthMethod>The authentication method used by the access point.
country: Option<Country>The country information of the access point (if available from beacon frames).
Trait Implementations§
Source§impl Clone for AccessPointInfo
impl Clone for AccessPointInfo
Source§fn clone(&self) -> AccessPointInfo
fn clone(&self) -> AccessPointInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessPointInfo
impl Debug for AccessPointInfo
Source§impl Default for AccessPointInfo
impl Default for AccessPointInfo
Source§fn default() -> AccessPointInfo
fn default() -> AccessPointInfo
Returns the “default value” for a type. Read more
Source§impl Format for AccessPointInfowhere
String: Debug,
[u8; 6]: Format,
SecondaryChannel: Format,
Option<AuthMethod>: Format,
Option<Country>: Format,
impl Format for AccessPointInfowhere
String: Debug,
[u8; 6]: Format,
SecondaryChannel: Format,
Option<AuthMethod>: Format,
Option<Country>: Format,
Source§impl PartialEq for AccessPointInfo
impl PartialEq for AccessPointInfo
impl Eq for AccessPointInfo
impl StructuralPartialEq for AccessPointInfo
Auto Trait Implementations§
impl Freeze for AccessPointInfo
impl RefUnwindSafe for AccessPointInfo
impl Send for AccessPointInfo
impl Sync for AccessPointInfo
impl Unpin for AccessPointInfo
impl UnwindSafe for AccessPointInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)