pub struct Service {
pub uuid: Uuid,
pub name: Option<&'static str>,
pub primary: bool,
pub start: u16,
pub end: u16,
pub characteristics: Vec<Characteristic>,
}Expand description
A service on a peer’s server.
Fields§
§uuid: UuidIts UUID.
name: Option<&'static str>The SIG’s name for it.
primary: boolPrimary (rather than secondary, found through an include).
start: u16The declaration’s handle.
end: u16The last handle in the service.
characteristics: Vec<Characteristic>Its characteristics, when discovered.
Trait Implementations§
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 UnsafeUnpin 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