Enum stm32wb_hci::host::ScanFilterPolicy
source · #[repr(u8)]pub enum ScanFilterPolicy {
AcceptAll,
WhiteList,
AddressedToThisDevice,
WhiteListAddressedToThisDevice,
}Expand description
Which advertising packets to accept from a scan.
See ScanParameters and le_set_scan_parameters.
Variants§
AcceptAll
Accept all advertising packets except directed advertising packets not addressed to this device (default).
WhiteList
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
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
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<ScanFilterPolicy> for ScanFilterPolicy
impl PartialEq<ScanFilterPolicy> 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 ==.