Enum bluer::adv::PlatformFeature
source · #[non_exhaustive]pub enum PlatformFeature {
CanSetTxPower,
HardwareOffload,
}
Available on crate feature
bluetoothd
only.Expand description
LE advertising platform feature.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CanSetTxPower
Indicates whether platform can specify TX power on each advertising instance.
HardwareOffload
Indicates whether multiple advertising will be offloaded to the controller.
Trait Implementations§
source§impl Clone for PlatformFeature
impl Clone for PlatformFeature
source§fn clone(&self) -> PlatformFeature
fn clone(&self) -> PlatformFeature
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 PlatformFeature
impl Debug for PlatformFeature
source§impl<'de> Deserialize<'de> for PlatformFeature
impl<'de> Deserialize<'de> for PlatformFeature
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PlatformFeature
impl Display for PlatformFeature
source§impl FromStr for PlatformFeature
impl FromStr for PlatformFeature
source§impl Hash for PlatformFeature
impl Hash for PlatformFeature
source§impl Ord for PlatformFeature
impl Ord for PlatformFeature
source§fn cmp(&self, other: &PlatformFeature) -> Ordering
fn cmp(&self, other: &PlatformFeature) -> 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 PlatformFeature
impl PartialEq for PlatformFeature
source§fn eq(&self, other: &PlatformFeature) -> bool
fn eq(&self, other: &PlatformFeature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PlatformFeature
impl PartialOrd for PlatformFeature
source§fn partial_cmp(&self, other: &PlatformFeature) -> Option<Ordering>
fn partial_cmp(&self, other: &PlatformFeature) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PlatformFeature
impl Serialize for PlatformFeature
source§impl TryFrom<&str> for PlatformFeature
impl TryFrom<&str> for PlatformFeature
impl Copy for PlatformFeature
impl Eq for PlatformFeature
impl StructuralPartialEq for PlatformFeature
Auto Trait Implementations§
impl Freeze for PlatformFeature
impl RefUnwindSafe for PlatformFeature
impl Send for PlatformFeature
impl Sync for PlatformFeature
impl Unpin for PlatformFeature
impl UnwindSafe for PlatformFeature
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