pub struct Characteristic {
pub handle: Option<Handle>,
pub type_: Option<Uuid>,
pub properties: Option<CharacteristicPropertyBits>,
pub permissions: Option<AttributePermissions>,
pub descriptors: Option<Vec<Descriptor>>,
/* private fields */
}
Expand description
Represents a local or remote GATT characteristic.
Fields§
§handle: Option<Handle>
Uniquely identifies this characteristic within a service. For local characteristics, the specified handle must be unique across all characteristic and descriptor handles in this service.
Always present. For local characteristics, this value is mandatory.
type_: Option<Uuid>
The UUID that identifies the type of this characteristic. Always present. Mandatory for local characteristics.
properties: Option<CharacteristicPropertyBits>
The characteristic properties bitfield. Always present. Mandatory for local characteristics.
permissions: Option<AttributePermissions>
The attribute permissions of this characteristic. For remote characteristics, this value will not be present until the permissions are discovered via read and write requests.
For local characteristics, this value is mandatory.
descriptors: Option<Vec<Descriptor>>
The descriptors of this characteristic. Present only if non-empty. Optional for local characteristics.
Trait Implementations§
Source§impl Clone for Characteristic
impl Clone for Characteristic
Source§fn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Characteristic
impl Debug for Characteristic
Source§impl<D: ResourceDialect> Decode<Characteristic, D> for Characteristic
impl<D: ResourceDialect> Decode<Characteristic, D> for Characteristic
Source§impl Default for Characteristic
impl Default for Characteristic
Source§fn default() -> Characteristic
fn default() -> Characteristic
Source§impl<D: ResourceDialect> Encode<Characteristic, D> for &Characteristic
impl<D: ResourceDialect> Encode<Characteristic, D> for &Characteristic
Source§impl PartialEq for Characteristic
impl PartialEq for Characteristic
Source§impl TypeMarker for Characteristic
impl TypeMarker for Characteristic
Source§type Owned = Characteristic
type Owned = Characteristic
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for Characteristic
impl ValueTypeMarker for Characteristic
Source§type Borrowed<'a> = &'a Characteristic
type Borrowed<'a> = &'a Characteristic
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for Characteristic
impl StructuralPartialEq for Characteristic
Auto 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§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)