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
inner: T
Trait Implementations
impl<T: HapService> Serialize for Service<T>
[src]
impl<T: HapService> Serialize for Service<T>
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<T: HapService> HapService for Service<T>
[src]
impl<T: HapService> HapService for Service<T>
fn get_id(&self) -> u64
[src]
fn get_id(&self) -> u64
Returns the ID of a Service.
fn set_id(&mut self, id: u64)
[src]
fn set_id(&mut self, id: u64)
Sets the ID of a Service.
fn get_type(&self) -> HapType
[src]
fn get_type(&self) -> HapType
Returns the HapType
of a Service.
Returns the hidden value of a Service.
Sets the hidden value of a Service.
fn get_primary(&self) -> bool
[src]
fn get_primary(&self) -> bool
Returns the primary value of a Service.
fn set_primary(&mut self, primary: bool)
[src]
fn set_primary(&mut self, primary: bool)
Sets the primary value of a Service.
fn get_characteristics(&self) -> Vec<&HapCharacteristic>
[src]
fn get_characteristics(&self) -> Vec<&HapCharacteristic>
Returns references to the Characteristics of a Service.
fn get_mut_characteristics(&mut self) -> Vec<&mut HapCharacteristic>
[src]
fn get_mut_characteristics(&mut self) -> Vec<&mut HapCharacteristic>
Returns mutable references to the Characteristics of a Service.