Struct ScanConfig
#[non_exhaustive]pub struct ScanConfig { /* private fields */ }Expand description
Scan configuration.
Implementations§
§impl ScanConfig
impl ScanConfig
pub fn with_ssid(self, ssid: Ssid) -> ScanConfig
pub fn with_ssid(self, ssid: Ssid) -> ScanConfig
Assign the given value to the ssid field.
pub fn with_ssid_none(self) -> ScanConfig
pub fn with_ssid_none(self) -> ScanConfig
Set the value of ssid to None.
pub fn ssid(&self) -> Option<Ssid>
pub fn ssid(&self) -> Option<Ssid>
SSID to filter for.
If [None] is passed, all SSIDs will be returned.
If [Some] is passed, only the APs matching the given SSID will be
returned.
pub fn with_bssid(self, bssid: [u8; 6]) -> ScanConfig
pub fn with_bssid(self, bssid: [u8; 6]) -> ScanConfig
Assign the given value to the bssid field.
pub fn with_bssid_none(self) -> ScanConfig
pub fn with_bssid_none(self) -> ScanConfig
Set the value of bssid to None.
pub fn bssid(&self) -> Option<[u8; 6]>
pub fn bssid(&self) -> Option<[u8; 6]>
BSSID to filter for.
If [None] is passed, all BSSIDs will be returned.
If [Some] is passed, only the APs matching the given BSSID will be
returned.
pub fn with_channel(self, channel: u8) -> ScanConfig
pub fn with_channel(self, channel: u8) -> ScanConfig
Assign the given value to the channel field.
pub fn with_channel_none(self) -> ScanConfig
pub fn with_channel_none(self) -> ScanConfig
Set the value of channel to None.
pub fn channel(&self) -> Option<u8>
pub fn channel(&self) -> Option<u8>
Channel to filter for.
If [None] is passed, all channels will be returned.
If [Some] is passed, only the APs on the given channel will be
returned.
Assign the given value to the show_hidden field.
Whether to show hidden networks.
pub fn with_scan_type(self, scan_type: ScanTypeConfig) -> ScanConfig
pub fn with_scan_type(self, scan_type: ScanTypeConfig) -> ScanConfig
Assign the given value to the scan_type field.
pub fn scan_type(&self) -> ScanTypeConfig
pub fn scan_type(&self) -> ScanTypeConfig
Scan type, active or passive.
pub fn with_max(self, max: usize) -> ScanConfig
pub fn with_max(self, max: usize) -> ScanConfig
Assign the given value to the max field.
pub fn with_max_none(self) -> ScanConfig
pub fn with_max_none(self) -> ScanConfig
Set the value of max to None.
pub fn max(&self) -> Option<usize>
pub fn max(&self) -> Option<usize>
The maximum number of networks to return when scanning.
If [None] is passed, all networks will be returned.
If [Some] is passed, the specified number of networks will be returned.
Trait Implementations§
§impl Clone for ScanConfig
impl Clone for ScanConfig
§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ScanConfig
impl Debug for ScanConfig
§impl Default for ScanConfig
impl Default for ScanConfig
§fn default() -> ScanConfig
fn default() -> ScanConfig
§impl Format for ScanConfigwhere
Option<Ssid>: Format,
Option<[u8; 6]>: Format,
Option<u8>: Format,
ScanTypeConfig: Format,
Option<usize>: Format,
impl Format for ScanConfigwhere
Option<Ssid>: Format,
Option<[u8; 6]>: Format,
Option<u8>: Format,
ScanTypeConfig: Format,
Option<usize>: Format,
§impl PartialEq for ScanConfig
impl PartialEq for ScanConfig
impl Copy for ScanConfig
impl Eq for ScanConfig
impl StructuralPartialEq for ScanConfig
Auto Trait Implementations§
impl Freeze for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnsafeUnpin for ScanConfig
impl UnwindSafe for ScanConfig
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§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)
clone_to_uninit)