pub struct ScanConfig<'a> {
pub ssid: Option<&'a str>,
pub bssid: Option<[u8; 6]>,
pub channel: Option<u8>,
pub show_hidden: bool,
pub scan_type: ScanTypeConfig,
}
Expand description
Scan configuration
Fields§
§ssid: 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.
bssid: 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.
channel: 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.
Whether to show hidden networks.
scan_type: ScanTypeConfig
Scan type, active or passive.
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>
Returns a copy 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<'a> Default for ScanConfig<'a>
impl<'a> Default for ScanConfig<'a>
Source§fn default() -> ScanConfig<'a>
fn default() -> ScanConfig<'a>
Returns the “default value” for a type. Read more
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
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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)