pub struct GattService {
pub uuid: String,
pub iid: u16,
pub characteristics: Vec<GattCharacteristic>,
}Expand description
One GATT service and its characteristics.
Fields§
§uuid: StringThe 128-bit service UUID (canonical 36-char string).
iid: u16The HAP service instance id.
characteristics: Vec<GattCharacteristic>Characteristics under this service.
Trait Implementations§
Source§impl Clone for GattService
impl Clone for GattService
Source§fn clone(&self) -> GattService
fn clone(&self) -> GattService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GattService
impl Debug for GattService
impl Eq for GattService
Source§impl PartialEq for GattService
impl PartialEq for GattService
Source§fn eq(&self, other: &GattService) -> bool
fn eq(&self, other: &GattService) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GattService
Auto Trait Implementations§
impl Freeze for GattService
impl RefUnwindSafe for GattService
impl Send for GattService
impl Sync for GattService
impl Unpin for GattService
impl UnsafeUnpin for GattService
impl UnwindSafe for GattService
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