pub struct ScanConfig<'a> { /* private fields */ }Expand description
Scan configuration
Implementations§
Source§impl<'a> ScanConfig<'a>
impl<'a> ScanConfig<'a>
Sourcepub fn with_ssid_none(self) -> Self
pub fn with_ssid_none(self) -> Self
Set the value of ssid to None.
Sourcepub fn ssid(&self) -> Option<&'a str>
pub fn ssid(&self) -> Option<&'a str>
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.
Sourcepub fn with_bssid(self, bssid: [u8; 6]) -> Self
pub fn with_bssid(self, bssid: [u8; 6]) -> Self
Assign the given value to the bssid field.
Sourcepub fn with_bssid_none(self) -> Self
pub fn with_bssid_none(self) -> Self
Set the value of bssid to None.
Sourcepub 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.
Sourcepub fn with_channel(self, channel: u8) -> Self
pub fn with_channel(self, channel: u8) -> Self
Assign the given value to the channel field.
Sourcepub fn with_channel_none(self) -> Self
pub fn with_channel_none(self) -> Self
Set the value of channel to None.
Sourcepub 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.
Sourcepub fn with_scan_type(self, scan_type: ScanTypeConfig) -> Self
pub fn with_scan_type(self, scan_type: ScanTypeConfig) -> Self
Assign the given value to the scan_type field.
Sourcepub fn scan_type(&self) -> ScanTypeConfig
pub fn scan_type(&self) -> ScanTypeConfig
Scan type, active or passive.
Sourcepub fn with_max_none(self) -> Self
pub fn with_max_none(self) -> Self
Set the value of max to None.
Trait Implementations§
Source§impl<'a> Clone for ScanConfig<'a>
impl<'a> Clone for ScanConfig<'a>
Source§fn clone(&self) -> ScanConfig<'a>
fn clone(&self) -> ScanConfig<'a>
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Default for ScanConfig<'a>
impl<'a> Default for ScanConfig<'a>
Source§fn default() -> ScanConfig<'a>
fn default() -> ScanConfig<'a>
Source§impl<'a> PartialEq for ScanConfig<'a>
impl<'a> PartialEq for ScanConfig<'a>
impl<'a> Copy for ScanConfig<'a>
impl<'a> Eq for ScanConfig<'a>
impl<'a> StructuralPartialEq for ScanConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScanConfig<'a>
impl<'a> RefUnwindSafe for ScanConfig<'a>
impl<'a> Send for ScanConfig<'a>
impl<'a> Sync for ScanConfig<'a>
impl<'a> Unpin for ScanConfig<'a>
impl<'a> UnwindSafe for ScanConfig<'a>
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
§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)