#[repr(u8)]pub enum AdvertisingFilterPolicy {
AllowConnectionAndScan = 0,
AllowConnectionWhiteListScan = 1,
WhiteListConnectionAllowScan = 2,
WhiteListConnectionAndScan = 3,
}
Expand description
Possible filter policies used for undirected advertising.
Variants§
AllowConnectionAndScan = 0
Process scan and connection requests from all devices (i.e., the White List is not in use) (default).
AllowConnectionWhiteListScan = 1
Process connection requests from all devices and only scan requests from devices that are in the White List.
WhiteListConnectionAllowScan = 2
Process scan requests from all devices and only connection requests from devices that are in the White List.
WhiteListConnectionAndScan = 3
Process scan and connection requests only from devices in the White List.
Trait Implementations§
Source§impl Clone for AdvertisingFilterPolicy
impl Clone for AdvertisingFilterPolicy
Source§fn clone(&self) -> AdvertisingFilterPolicy
fn clone(&self) -> AdvertisingFilterPolicy
Returns a duplicate 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 AdvertisingFilterPolicy
impl Debug for AdvertisingFilterPolicy
Source§impl PartialEq for AdvertisingFilterPolicy
impl PartialEq for AdvertisingFilterPolicy
impl Copy for AdvertisingFilterPolicy
impl StructuralPartialEq for AdvertisingFilterPolicy
Auto Trait Implementations§
impl Freeze for AdvertisingFilterPolicy
impl RefUnwindSafe for AdvertisingFilterPolicy
impl Send for AdvertisingFilterPolicy
impl Sync for AdvertisingFilterPolicy
impl Unpin for AdvertisingFilterPolicy
impl UnwindSafe for AdvertisingFilterPolicy
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