Struct bluez_async::DescriptorId
source · pub struct DescriptorId { /* private fields */ }
Expand description
Opaque identifier for a GATT characteristic descriptor on a Bluetooth device.
Implementations§
source§impl DescriptorId
impl DescriptorId
sourcepub fn characteristic(&self) -> CharacteristicId
pub fn characteristic(&self) -> CharacteristicId
Get the ID of the characteristic on which this descriptor was advertised.
Trait Implementations§
source§impl Clone for DescriptorId
impl Clone for DescriptorId
source§fn clone(&self) -> DescriptorId
fn clone(&self) -> DescriptorId
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 DescriptorId
impl Debug for DescriptorId
source§impl<'de> Deserialize<'de> for DescriptorId
impl<'de> Deserialize<'de> for DescriptorId
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 DescriptorId
impl Display for DescriptorId
source§impl From<DescriptorId> for Path<'static>
impl From<DescriptorId> for Path<'static>
source§fn from(id: DescriptorId) -> Self
fn from(id: DescriptorId) -> Self
Converts to this type from the input type.
source§impl Hash for DescriptorId
impl Hash for DescriptorId
source§impl Ord for DescriptorId
impl Ord for DescriptorId
source§fn cmp(&self, other: &DescriptorId) -> Ordering
fn cmp(&self, other: &DescriptorId) -> 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<DescriptorId> for DescriptorId
impl PartialEq<DescriptorId> for DescriptorId
source§fn eq(&self, other: &DescriptorId) -> bool
fn eq(&self, other: &DescriptorId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<DescriptorId> for DescriptorId
impl PartialOrd<DescriptorId> for DescriptorId
source§fn partial_cmp(&self, other: &DescriptorId) -> Option<Ordering>
fn partial_cmp(&self, other: &DescriptorId) -> 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 more