pub struct CharacteristicInfo {
pub id: CharacteristicId,
pub uuid: Uuid,
pub flags: CharacteristicFlags,
pub mtu: Option<u16>,
}
Expand description
Information about a GATT characteristic on a Bluetooth device.
Fields§
§id: CharacteristicId
An opaque identifier for the characteristic on the device, including a reference to which adapter it was discovered on.
uuid: Uuid
The 128-bit UUID of the characteristic.
flags: CharacteristicFlags
The set of flags (a.k.a. properties) of the characteristic, defining how the characteristic can be used.
mtu: Option<u16>
Characteristic MTU.
This is valid both for ReadValue and WriteValue, but either method can use long procedures when supported.
Trait Implementations§
Source§impl Clone for CharacteristicInfo
impl Clone for CharacteristicInfo
Source§fn clone(&self) -> CharacteristicInfo
fn clone(&self) -> CharacteristicInfo
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 CharacteristicInfo
impl Debug for CharacteristicInfo
Source§impl PartialEq for CharacteristicInfo
impl PartialEq for CharacteristicInfo
impl Eq for CharacteristicInfo
impl StructuralPartialEq for CharacteristicInfo
Auto Trait Implementations§
impl Freeze for CharacteristicInfo
impl RefUnwindSafe for CharacteristicInfo
impl Send for CharacteristicInfo
impl Sync for CharacteristicInfo
impl Unpin for CharacteristicInfo
impl UnwindSafe for CharacteristicInfo
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