Enum burble_const::Declaration
source · #[non_exhaustive]
#[repr(u16)]
pub enum Declaration {
PrimaryService,
SecondaryService,
Include,
Characteristic,
}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 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 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 Declaration
impl PartialEq<Declaration> for Declaration
source§fn eq(&self, other: &Declaration) -> bool
fn eq(&self, other: &Declaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Declaration> for Uuid
impl PartialEq<Declaration> for Uuid
source§fn eq(&self, rhs: &Declaration) -> bool
fn eq(&self, rhs: &Declaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Declaration> for Uuid16
impl PartialEq<Declaration> for Uuid16
source§fn eq(&self, rhs: &Declaration) -> bool
fn eq(&self, rhs: &Declaration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<Uuid> for Declaration
impl PartialEq<Uuid> for Declaration
source§impl PartialEq<Uuid16> for Declaration
impl PartialEq<Uuid16> for Declaration
source§impl PartialOrd<Declaration> for Declaration
impl PartialOrd<Declaration> for Declaration
source§fn partial_cmp(&self, other: &Declaration) -> Option<Ordering>
fn partial_cmp(&self, other: &Declaration) -> 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 TryFrom<Uuid16> for Declaration
impl TryFrom<Uuid16> for Declaration
§type Error = TryFromPrimitiveError<Declaration>
type Error = TryFromPrimitiveError<Declaration>
The type returned in the event of a conversion error.
source§impl TryFrom<u16> for Declaration
impl TryFrom<u16> for Declaration
§type Error = TryFromPrimitiveError<Declaration>
type Error = TryFromPrimitiveError<Declaration>
The type returned in the event of a conversion error.