pub struct Service {
pub uuid: Uuid,
pub primary: bool,
pub characteristics: BTreeSet<Characteristic>,
}
Expand description
A GATT service. Services are groups of characteristics, which may be standard or device-specific.
Fields§
§uuid: Uuid
The UUID for this service.
primary: bool
Whether this is a primary service.
characteristics: BTreeSet<Characteristic>
The characteristics of this service.
Trait Implementations§
Source§impl Ord for Service
impl Ord for Service
Source§impl PartialOrd for Service
impl PartialOrd for Service
impl Eq for Service
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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