#[non_exhaustive]pub struct CharacteristicProperties {
pub broadcast: bool,
pub read: bool,
pub write_without_response: bool,
pub write: bool,
pub notify: bool,
pub indicate: bool,
pub authenticated_signed_writes: bool,
pub extended_properties: bool,
pub reliable_write: bool,
pub writable_auxiliaries: bool,
}Expand description
GATT characteristic properties as defined in the Bluetooth Core Specification, Vol 3, Part G, §3.3.1.1.
Extended properties are also included as defined in §3.3.3.1.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.broadcast: bool§read: bool§write_without_response: bool§write: bool§notify: bool§indicate: bool§authenticated_signed_writes: bool§extended_properties: bool§reliable_write: bool§writable_auxiliaries: boolImplementations§
Trait Implementations§
Source§impl Clone for CharacteristicProperties
impl Clone for CharacteristicProperties
Source§fn clone(&self) -> CharacteristicProperties
fn clone(&self) -> CharacteristicProperties
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 CharacteristicProperties
impl Debug for CharacteristicProperties
Source§impl Default for CharacteristicProperties
impl Default for CharacteristicProperties
Source§fn default() -> CharacteristicProperties
fn default() -> CharacteristicProperties
Returns the “default value” for a type. Read more
Source§impl Hash for CharacteristicProperties
impl Hash for CharacteristicProperties
Source§impl Ord for CharacteristicProperties
impl Ord for CharacteristicProperties
Source§fn cmp(&self, other: &CharacteristicProperties) -> Ordering
fn cmp(&self, other: &CharacteristicProperties) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CharacteristicProperties
impl PartialEq for CharacteristicProperties
Source§impl PartialOrd for CharacteristicProperties
impl PartialOrd for CharacteristicProperties
impl Copy for CharacteristicProperties
impl Eq for CharacteristicProperties
impl StructuralPartialEq for CharacteristicProperties
Auto Trait Implementations§
impl Freeze for CharacteristicProperties
impl RefUnwindSafe for CharacteristicProperties
impl Send for CharacteristicProperties
impl Sync for CharacteristicProperties
impl Unpin for CharacteristicProperties
impl UnsafeUnpin for CharacteristicProperties
impl UnwindSafe for CharacteristicProperties
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