[−][src]Struct btleplug::api::Characteristic
A Bluetooth characteristic. Characteristics are the main way you will interact with other bluetooth devices. Characteristics are identified by a UUID which may be standardized (like 0x2803, which identifies a characteristic for reading heart rate measurements) but more often are specific to a particular device. The standard set of characteristics can be found here.
A characteristic may be interacted with in various ways depending on its properties. You may be able to write to it, read from it, set its notify or indicate status, or send a command to it.
Fields
start_handle: u16
The start of the handle range that contains this characteristic. Only valid on Linux, will be 0 on all other platforms.
end_handle: u16
The end of the handle range that contains this characteristic. Only valid on Linux, will be 0 on all other platforms.
value_handle: u16
The value handle of the characteristic. Only valid on Linux, will be 0 on all other platforms.
uuid: UUID
The UUID for this characteristic. This uniquely identifies its behavior.
properties: CharPropFlags
The set of properties for this characteristic, which indicate what functionality it supports. If you attempt an operation that is not supported by the characteristics (for example setting notify on one without the NOTIFY flag), that operation will fail.
Trait Implementations
impl Clone for Characteristic
[src]
fn clone(&self) -> Characteristic
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Characteristic
[src]
impl Display for Characteristic
[src]
impl Eq for Characteristic
[src]
impl Ord for Characteristic
[src]
fn cmp(&self, other: &Characteristic) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Characteristic> for Characteristic
[src]
fn eq(&self, other: &Characteristic) -> bool
[src]
fn ne(&self, other: &Characteristic) -> bool
[src]
impl PartialOrd<Characteristic> for Characteristic
[src]
fn partial_cmp(&self, other: &Characteristic) -> Option<Ordering>
[src]
fn lt(&self, other: &Characteristic) -> bool
[src]
fn le(&self, other: &Characteristic) -> bool
[src]
fn gt(&self, other: &Characteristic) -> bool
[src]
fn ge(&self, other: &Characteristic) -> bool
[src]
impl StructuralEq for Characteristic
[src]
impl StructuralPartialEq for Characteristic
[src]
Auto Trait Implementations
impl RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl UnwindSafe for Characteristic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,