Struct hap::service::Service[][src]

pub struct Service<T: HapService> {
    pub inner: T,
}

A Service. Services group functionality in order to provide context. They are comprised of characteristics.

Fields

Trait Implementations

impl<T: HapService> Serialize for Service<T>
[src]

Serialize this value into the given Serde serializer. Read more

impl<T: HapService> HapService for Service<T>
[src]

Returns the ID of a Service.

Sets the ID of a Service.

Returns the HapType of a Service.

Returns the hidden value of a Service.

Sets the hidden value of a Service.

Returns the primary value of a Service.

Sets the primary value of a Service.

Returns references to the Characteristics of a Service.

Returns mutable references to the Characteristics of a Service.

Auto Trait Implementations

impl<T> Send for Service<T> where
    T: Send

impl<T> Sync for Service<T> where
    T: Sync