pub struct Characteristic {
pub uuid: Uuid,
pub read: Option<Box<dyn GattReadFn>>,
pub write: Option<Box<dyn GattWriteFn>>,
pub descriptors: Vec<Descriptor>,
}Fields§
§uuid: Uuid§read: Option<Box<dyn GattReadFn>>§write: Option<Box<dyn GattWriteFn>>§descriptors: Vec<Descriptor>Trait Implementations§
Source§impl Default for Characteristic
impl Default for Characteristic
Source§fn default() -> Characteristic
fn default() -> Characteristic
Returns the “default value” for a type. Read more
Source§impl From<Characteristic> for Characteristic
impl From<Characteristic> for Characteristic
Source§fn from(value: Characteristic) -> Self
fn from(value: Characteristic) -> Self
Converts to this type from the input type.
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§
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