pub struct WpaScanResult {
pub bssid: StrBuf<17>,
pub freq: u32,
pub level: i16,
pub flags: WpaScanResultFlags,
pub ssid: StrBuf<32>,
}Expand description
Scan result’s item description
Fields§
§bssid: StrBuf<17>Network’s BSSID. Can be empty string, when not set.
freq: u32Network’s frequency
level: i16Network’s signal level in decibel(dBm)
flags: WpaScanResultFlagsNetwork’s flag
ssid: StrBuf<32>Network’s SSID. Should not be empty normally
Implementations§
Source§impl WpaScanResult
impl WpaScanResult
Sourcepub fn singal_level_percent(&self) -> u8
pub fn singal_level_percent(&self) -> u8
Returns signal level in percentage of range 0..=100
Calculates as following: 2 * (dBm + 100) where dBm: [-100 to -50]
Trait Implementations§
Source§impl Clone for WpaScanResult
impl Clone for WpaScanResult
Source§fn clone(&self) -> WpaScanResult
fn clone(&self) -> WpaScanResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WpaScanResult
impl RefUnwindSafe for WpaScanResult
impl Send for WpaScanResult
impl Sync for WpaScanResult
impl Unpin for WpaScanResult
impl UnwindSafe for WpaScanResult
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
Mutably borrows from an owned value. Read more