[][src]Struct core_bluetooth::central::service::Service

pub struct Service { /* fields omitted */ }

A collection of data and associated behaviors that accomplish a function or feature of a device.

Services are either primary or secondary and may contain multiple characteristics or included services (references to other services).

Implementations

impl Service[src]

pub fn id(&self) -> Uuid[src]

pub fn is_primary(&self) -> bool[src]

Indicates whether the type of service is primary or secondary.

A peripheral’s service is either primary or secondary. A primary service describes the primary function of a device. A secondary service describes a service that’s relevant only in the context of another service that references it. For example, the primary service of a heart rate monitor may be to expose heart rate data from the monitor’s heart rate sensor. In this example, a secondary service may be to expose the sensor’s battery data.

Trait Implementations

impl Clone for Service[src]

impl Debug for Service[src]

impl Eq for Service[src]

impl Hash for Service[src]

impl PartialEq<Service> for Service[src]

Auto Trait Implementations

impl RefUnwindSafe for Service

impl Send for Service

impl Sync for Service

impl Unpin for Service

impl UnwindSafe for Service

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.