pub struct Characteristic {
pub handle: Handle,
pub uuid: Uuid,
pub properties: CharacteristicProperties,
pub permissions: AttributePermissions,
pub descriptors: Vec<Descriptor>,
}
Expand description
A Characteristic on a Service. Each Characteristic has a declaration, value, and zero or more descriptors.
Fields§
§handle: Handle
§uuid: Uuid
§properties: CharacteristicProperties
§permissions: AttributePermissions
Attribute Permissions that apply to the value
descriptors: Vec<Descriptor>
Implementations§
Source§impl Characteristic
impl Characteristic
pub fn properties(&self) -> &CharacteristicProperties
pub fn supports_property(&self, property: &CharacteristicProperty) -> bool
pub fn descriptors(&self) -> impl Iterator<Item = &Descriptor>
pub fn handles(&self) -> impl Iterator<Item = Handle> + '_
Trait Implementations§
Source§impl Clone for Characteristic
impl Clone for Characteristic
Source§fn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
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 moreAuto Trait Implementations§
impl Freeze for Characteristic
impl RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl UnwindSafe for Characteristic
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