pub struct Service {
pub uuid: Uuid,
pub handle: Option<NonZeroU16>,
pub primary: bool,
pub characteristics: Vec<Characteristic>,
pub control_handle: ServiceControlHandle,
/* private fields */
}
Available on crate feature
bluetoothd
only.Expand description
Definition of local GATT service exposed over Bluetooth.
Fields§
§uuid: Uuid
128-bit service UUID.
handle: Option<NonZeroU16>
Service handle.
Set to None to auto allocate an available handle.
primary: bool
Indicates whether or not this GATT service is a primary service.
If false, the service is secondary.
characteristics: Vec<Characteristic>
List of GATT characteristics to expose.
control_handle: ServiceControlHandle
Control handle for service once it has been registered.
Trait Implementations§
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