Enum esp_wifi::wifi::ScanTypeConfig
source · pub enum ScanTypeConfig {
Active {
min: Duration,
max: Duration,
},
Passive(Duration),
}
Expand description
Configuration for active or passive scan. For details see the WIFI Alliance FAQ.
§Comparison of active and passive scan
Active | Passive | |
---|---|---|
Power consumption | High | Low |
Time required (typical behavior) | Low | High |
Variants§
Active
Active scan with min and max scan time per channel. This is the default and recommended if you are unsure.
§Procedure
- Send probe request on each channel.
- Wait for probe response. Wait at least
min
time, but if no response is received, wait up tomax
time. - Switch channel.
- Repeat from 1.
Fields
§
min: Duration
Minimum scan time per channel. Defaults to 10ms.
§
max: Duration
Maximum scan time per channel. Defaults to 20ms.
Passive(Duration)
Trait Implementations§
source§impl Clone for ScanTypeConfig
impl Clone for ScanTypeConfig
source§fn clone(&self) -> ScanTypeConfig
fn clone(&self) -> ScanTypeConfig
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 Default for ScanTypeConfig
impl Default for ScanTypeConfig
source§impl PartialEq for ScanTypeConfig
impl PartialEq for ScanTypeConfig
impl Copy for ScanTypeConfig
impl Eq for ScanTypeConfig
impl StructuralPartialEq for ScanTypeConfig
Auto Trait Implementations§
impl Freeze for ScanTypeConfig
impl RefUnwindSafe for ScanTypeConfig
impl Send for ScanTypeConfig
impl Sync for ScanTypeConfig
impl Unpin for ScanTypeConfig
impl UnwindSafe for ScanTypeConfig
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 T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)