#[non_exhaustive]pub struct ScanConfig { /* private fields */ }wifi only.Expand description
Scan configuration.
Implementations§
Source§impl ScanConfig
impl ScanConfig
Sourcepub 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.
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.
Source§impl ScanConfig
impl ScanConfig
Sourcepub fn with_ssid_none(self) -> Self
pub fn with_ssid_none(self) -> Self
Clears the SSID.
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ScanConfig
impl Debug for ScanConfig
Source§impl Default for ScanConfig
impl Default for ScanConfig
Source§fn default() -> ScanConfig
fn default() -> ScanConfig
Source§impl Format for ScanConfig
impl Format for ScanConfig
Source§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 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
§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)