#[non_exhaustive]#[repr(u16)]pub enum Declaration {
PrimaryService = 10_240,
SecondaryService = 10_241,
Include = 10_242,
Characteristic = 10_243,
}Expand description
Declarations ([Assigned Numbers] Section 3.6).
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.
Implementations§
Source§impl Declaration
impl Declaration
pub const PRIMARY_SERVICE: Uuid16
pub const SECONDARY_SERVICE: Uuid16
pub const INCLUDE: Uuid16
pub const CHARACTERISTIC: Uuid16
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§fn clone(&self) -> Declaration
fn clone(&self) -> Declaration
Returns a duplicate 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 Declaration
impl Debug for Declaration
Source§impl Display for Declaration
impl Display for Declaration
Source§impl From<Declaration> for Uuid
impl From<Declaration> for Uuid
Source§fn from(v: Declaration) -> Self
fn from(v: Declaration) -> Self
Converts to this type from the input type.
Source§impl From<Declaration> for Uuid16
impl From<Declaration> for Uuid16
Source§fn from(v: Declaration) -> Self
fn from(v: Declaration) -> Self
Converts to this type from the input type.
Source§impl From<Declaration> for u16
impl From<Declaration> for u16
Source§fn from(enum_value: Declaration) -> Self
fn from(enum_value: Declaration) -> Self
Converts to this type from the input type.
Source§impl Ord for Declaration
impl Ord for Declaration
Source§fn cmp(&self, other: &Declaration) -> Ordering
fn cmp(&self, other: &Declaration) -> 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<Declaration> for Uuid
impl PartialEq<Declaration> for Uuid
Source§impl PartialEq<Declaration> for Uuid16
impl PartialEq<Declaration> for Uuid16
Source§impl PartialEq<Uuid> for Declaration
impl PartialEq<Uuid> for Declaration
Source§impl PartialEq<Uuid16> for Declaration
impl PartialEq<Uuid16> for Declaration
Source§impl PartialEq for Declaration
impl PartialEq for Declaration
Source§impl PartialOrd for Declaration
impl PartialOrd for Declaration
Source§impl TryFrom<Uuid16> for Declaration
impl TryFrom<Uuid16> for Declaration
Source§impl TryFrom<u16> for Declaration
impl TryFrom<u16> for Declaration
Source§type Error = TryFromPrimitiveError<Declaration>
type Error = TryFromPrimitiveError<Declaration>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for Declaration
impl TryFromPrimitive for Declaration
impl Copy for Declaration
impl Eq for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnwindSafe for Declaration
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