pub struct ScanConfig {
pub active: bool,
pub interval_ms: u32,
pub window_ms: u32,
pub coded: bool,
pub filter_accept_list: bool,
pub dedup: Dedup,
pub always_report: Vec<u8>,
}Expand description
How to scan.
Fields§
§active: boolSend scan requests to get scan responses.
interval_ms: u32Scan interval, ms (2.5 to 10240).
window_ms: u32Scan window, ms (no more than the interval).
coded: boolScan on the coded PHY too (long range), when the controller can.
filter_accept_list: boolOnly devices on the filter accept list.
dedup: DedupDuplicate filtering.
always_report: Vec<u8>AD types whose advertisements are reported every time, whatever
dedup says: a protocol carried in advertisements, such as Mesh
(0x29 to 0x2b), whose retransmissions are identical and must not
be filtered as duplicates.
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§impl Debug for ScanConfig
impl Debug for ScanConfig
Source§impl Default for ScanConfig
impl Default for ScanConfig
Source§impl<'de> Deserialize<'de> for ScanConfigwhere
ScanConfig: Default,
impl<'de> Deserialize<'de> for ScanConfigwhere
ScanConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScanConfig
Source§impl PartialEq for ScanConfig
impl PartialEq for ScanConfig
Source§impl Serialize for ScanConfig
impl Serialize for ScanConfig
impl StructuralPartialEq for ScanConfig
Auto Trait Implementations§
impl Forget for ScanConfig
impl Freeze for ScanConfig
impl Move for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnsafeUnpin 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