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 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 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 for DescriptorId
impl PartialEq for DescriptorId
Source§impl PartialOrd for DescriptorId
impl PartialOrd for DescriptorId
Source§impl Serialize for DescriptorId
impl Serialize for DescriptorId
impl Eq for DescriptorId
impl StructuralPartialEq for DescriptorId
Auto Trait Implementations§
impl Freeze for DescriptorId
impl RefUnwindSafe for DescriptorId
impl Send for DescriptorId
impl Sync for DescriptorId
impl Unpin for DescriptorId
impl UnwindSafe for DescriptorId
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