Enum stm32wb_hci::host::ScanFilterPolicy
source · #[repr(u8)]pub enum ScanFilterPolicy {
AcceptAll = 0,
WhiteList = 1,
AddressedToThisDevice = 2,
WhiteListAddressedToThisDevice = 3,
}Expand description
Which advertising packets to accept from a scan.
See ScanParameters and le_set_scan_parameters.
Variants§
AcceptAll = 0
Accept all advertising packets except directed advertising packets not addressed to this device (default).
WhiteList = 1
Accept only advertising packets from devices where the advertiser’s address is in the White List. Directed advertising packets which are not addressed to this device shall be ignored.
AddressedToThisDevice = 2
Accept all advertising packets except directed advertising packets where the initiator’s identity address does not address this device.
Note: Directed advertising packets where the initiator’s address is a resolvable private address that cannot be resolved are also accepted.
WhiteListAddressedToThisDevice = 3
Accept all advertising packets except:
- advertising packets where the advertiser’s identity address is not in the White List; and
- directed advertising packets where the initiator’s identity addressdoes not address this device
Note: Directed advertising packets where the initiator’s address is a resolvable private address that cannot be resolved are also accepted.
Trait Implementations§
source§impl Clone for ScanFilterPolicy
impl Clone for ScanFilterPolicy
source§fn clone(&self) -> ScanFilterPolicy
fn clone(&self) -> ScanFilterPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScanFilterPolicy
impl Debug for ScanFilterPolicy
source§impl PartialEq for ScanFilterPolicy
impl PartialEq for ScanFilterPolicy
source§fn eq(&self, other: &ScanFilterPolicy) -> bool
fn eq(&self, other: &ScanFilterPolicy) -> bool
self and other values to be equal, and is used
by ==.