#[repr(u8)]pub enum ScanFilterPolicy {
AcceptAll = 0,
WhiteList = 1,
}
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.
Trait Implementations§
Source§impl Clone for ScanFilterPolicy
impl Clone for ScanFilterPolicy
Source§fn clone(&self) -> ScanFilterPolicy
fn clone(&self) -> ScanFilterPolicy
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScanFilterPolicy
impl Debug for ScanFilterPolicy
Source§impl PartialEq for ScanFilterPolicy
impl PartialEq for ScanFilterPolicy
impl Copy for ScanFilterPolicy
impl StructuralPartialEq for ScanFilterPolicy
Auto Trait Implementations§
impl Freeze for ScanFilterPolicy
impl RefUnwindSafe for ScanFilterPolicy
impl Send for ScanFilterPolicy
impl Sync for ScanFilterPolicy
impl Unpin for ScanFilterPolicy
impl UnwindSafe for ScanFilterPolicy
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