#[non_exhaustive]pub enum CharacteristicEvent {
Value {
value: Vec<u8>,
},
}
Expand description
Details of an event related to a GATT characteristic.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Value
A new value of the characteristic has been received. This may be from a notification.
Trait Implementations§
Source§impl Clone for CharacteristicEvent
impl Clone for CharacteristicEvent
Source§fn clone(&self) -> CharacteristicEvent
fn clone(&self) -> CharacteristicEvent
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 CharacteristicEvent
impl Debug for CharacteristicEvent
Source§impl PartialEq for CharacteristicEvent
impl PartialEq for CharacteristicEvent
impl Eq for CharacteristicEvent
impl StructuralPartialEq for CharacteristicEvent
Auto Trait Implementations§
impl Freeze for CharacteristicEvent
impl RefUnwindSafe for CharacteristicEvent
impl Send for CharacteristicEvent
impl Sync for CharacteristicEvent
impl Unpin for CharacteristicEvent
impl UnwindSafe for CharacteristicEvent
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