[][src]Struct btleplug::api::Characteristic

pub struct Characteristic {
    pub start_handle: u16,
    pub end_handle: u16,
    pub value_handle: u16,
    pub uuid: UUID,
    pub properties: CharPropFlags,
}

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]

impl Debug for Characteristic[src]

impl Display for Characteristic[src]

impl Eq for Characteristic[src]

impl Ord for Characteristic[src]

impl PartialEq<Characteristic> for Characteristic[src]

impl PartialOrd<Characteristic> for Characteristic[src]

impl StructuralEq for Characteristic[src]

impl StructuralPartialEq for Characteristic[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.