pub struct ScanConfig {
pub ssid: Vec<u8, 33>,
pub bssid: Vec<u8, 6>,
pub channel: u8,
pub show_hidden: bool,
pub scan_type: ScanType,
pub scan_time: ScanTime,
pub home_chan_dwell_time: u8,
}
Expand description
Parameters for an SSID scan. Note: If setting most of these values to 0 or empty Vecs, ESP will use its default settings. docs
Fields§
§ssid: Vec<u8, 33>
Can limit to a specific SSID or MAC. Empty means no filter.
bssid: Vec<u8, 6>
§channel: u8
Channel, scan the specific channel. 0 means no filter.
Enable it to scan AP whose SSID is hidden
scan_type: ScanType
Scan type, active or passive. 0 means active. 1 is passive. 2 is follow.
scan_time: ScanTime
§home_chan_dwell_time: u8
Implementations§
Trait Implementations§
Source§impl Default for ScanConfig
impl Default for ScanConfig
Source§fn default() -> ScanConfig
fn default() -> ScanConfig
Returns the “default value” for a type. Read more
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§
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