#[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 more