#[repr(u8)]pub enum AdvFilterPolicy {
    Unfiltered = 0,
    FilterScan = 1,
    FilterConn = 2,
    FilterConnAndScan = 3,
}Expand description
AdvFilterPolicy
Variants§
Trait Implementations§
Source§impl ByteAlignedValue for AdvFilterPolicy
 
impl ByteAlignedValue for AdvFilterPolicy
Source§fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
 
fn ref_from_hci_bytes(data: &[u8]) -> Result<(&Self, &[u8]), FromHciBytesError>
Obtain a reference to this type from a byte slice. Read more
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 · 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 AdvFilterPolicy
 
impl Debug for AdvFilterPolicy
Source§impl Default for AdvFilterPolicy
 
impl Default for AdvFilterPolicy
Source§fn default() -> AdvFilterPolicy
 
fn default() -> AdvFilterPolicy
Returns the “default value” for a type. Read more
Source§impl FixedSizeValue for AdvFilterPolicy
 
impl FixedSizeValue for AdvFilterPolicy
Source§impl Format for AdvFilterPolicy
 
impl Format for AdvFilterPolicy
Source§impl<'de> FromHciBytes<'de> for &'de AdvFilterPolicy
 
impl<'de> FromHciBytes<'de> for &'de AdvFilterPolicy
Source§fn from_hci_bytes(
    data: &'de [u8],
) -> Result<(&'de AdvFilterPolicy, &'de [u8]), FromHciBytesError>
 
fn from_hci_bytes( data: &'de [u8], ) -> Result<(&'de AdvFilterPolicy, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
 
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl Hash for AdvFilterPolicy
 
impl Hash for AdvFilterPolicy
Source§impl Ord for AdvFilterPolicy
 
impl Ord for AdvFilterPolicy
Source§fn cmp(&self, other: &AdvFilterPolicy) -> Ordering
 
fn cmp(&self, other: &AdvFilterPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AdvFilterPolicy
 
impl PartialEq for AdvFilterPolicy
Source§impl PartialOrd for AdvFilterPolicy
 
impl PartialOrd for AdvFilterPolicy
impl Copy for AdvFilterPolicy
impl Eq 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§
Source§impl<T> AsHciBytes for Twhere
    T: FixedSizeValue,
 
impl<T> AsHciBytes for Twhere
    T: FixedSizeValue,
Source§fn as_hci_bytes(&self) -> &[u8]
 
fn as_hci_bytes(&self) -> &[u8]
Get the byte representation of this type.
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<'de, T> FromHciBytes<'de> for Twhere
    T: FixedSizeValue,
 
impl<'de, T> FromHciBytes<'de> for Twhere
    T: FixedSizeValue,
Source§fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
 
fn from_hci_bytes(data: &'de [u8]) -> Result<(T, &'de [u8]), FromHciBytesError>
Deserialize bytes into a HCI type, return additional bytes.
Source§fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
 
fn from_hci_bytes_complete(data: &'de [u8]) -> Result<Self, FromHciBytesError>
Deserialize bytes into a HCI type, must consume all bytes.
Source§impl<'de, T> ReadHci<'de> for Twhere
    T: FixedSizeValue,
 
impl<'de, T> ReadHci<'de> for Twhere
    T: FixedSizeValue,
Source§fn read_hci<R>(
    reader: R,
    buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
    R: Read,
 
fn read_hci<R>(
    reader: R,
    buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
    R: Read,
Read this type from the provided reader.
Source§async fn read_hci_async<R>(
    reader: R,
    buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
    R: Read,
 
async fn read_hci_async<R>(
    reader: R,
    buf: &'de mut [u8],
) -> Result<T, ReadHciError<<R as ErrorType>::Error>>where
    R: Read,
Read this type from the provided reader, async version.