pub enum Flags {
LeLimited,
LeDiscoverable,
NoBrEdr,
BrEdrController,
BrEdrHost,
}Expand description
Features in the Flags AD
Variants§
Implementations§
Source§impl Flags
impl Flags
Sourcepub fn matching(flags: &[u8]) -> impl Iterator<Item = Self> + '_
pub fn matching(flags: &[u8]) -> impl Iterator<Item = Self> + '_
Iterates over the flags that are present in the provided flags bytes.
Sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
An abbreviated form of the flag name.
See Flags::name for the full name.
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
The human-readable name of the flag.
See Flags::short_name for a shorter string for use if compactness is important.
Trait Implementations§
Source§impl IntoEnumIterator for Flags
impl IntoEnumIterator for Flags
impl Eq for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more