Enum esp32_nimble::enums::AdvFilterPolicy
source · #[repr(u8)]pub enum AdvFilterPolicy {
None = 0,
Scan = 1,
Connect = 2,
Both = 3,
}
Variants§
None = 0
No filtering
Scan = 1
only allow scan requests from those on the white list.
Connect = 2
only allow connections from those on the white list.
Both = 3
only allow scan/connections from those on the white list.
Trait Implementations§
source§impl Clone for AdvFilterPolicy
impl Clone for AdvFilterPolicy
source§fn clone(&self) -> AdvFilterPolicy
fn clone(&self) -> AdvFilterPolicy
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AdvFilterPolicy
impl Debug for AdvFilterPolicy
source§impl From<AdvFilterPolicy> for u8
impl From<AdvFilterPolicy> for u8
source§fn from(enum_value: AdvFilterPolicy) -> Self
fn from(enum_value: AdvFilterPolicy) -> Self
Converts to this type from the input type.
source§impl PartialEq for AdvFilterPolicy
impl PartialEq for AdvFilterPolicy
source§fn eq(&self, other: &AdvFilterPolicy) -> bool
fn eq(&self, other: &AdvFilterPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AdvFilterPolicy
impl StructuralPartialEq for AdvFilterPolicy
Auto Trait Implementations§
impl Freeze for AdvFilterPolicy
impl RefUnwindSafe for AdvFilterPolicy
impl Send for AdvFilterPolicy
impl Sync for AdvFilterPolicy
impl Unpin for AdvFilterPolicy
impl UnwindSafe for AdvFilterPolicy
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)