Enum stm32wb_hci::host::AdvertisingFilterPolicy
source · #[repr(u8)]pub enum AdvertisingFilterPolicy {
AllowConnectionAndScan,
AllowConnectionWhiteListScan,
WhiteListConnectionAllowScan,
WhiteListConnectionAndScan,
}Expand description
Possible filter policies used for undirected advertising.
Variants§
AllowConnectionAndScan
Process scan and connection requests from all devices (i.e., the White List is not in use) (default).
AllowConnectionWhiteListScan
Process connection requests from all devices and only scan requests from devices that are in the White List.
WhiteListConnectionAllowScan
Process scan requests from all devices and only connection requests from devices that are in the White List.
WhiteListConnectionAndScan
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 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 AdvertisingFilterPolicy
impl Debug for AdvertisingFilterPolicy
source§impl PartialEq<AdvertisingFilterPolicy> for AdvertisingFilterPolicy
impl PartialEq<AdvertisingFilterPolicy> for AdvertisingFilterPolicy
source§fn eq(&self, other: &AdvertisingFilterPolicy) -> bool
fn eq(&self, other: &AdvertisingFilterPolicy) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for AdvertisingFilterPolicy
impl StructuralPartialEq for AdvertisingFilterPolicy
Auto Trait Implementations§
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