Struct hap::service::slat::SlatInner [−][src]
pub struct SlatInner { pub slat_type: SlatType, pub current_slat_state: CurrentSlatState, pub name: Option<Name>, pub current_tilt_angle: Option<CurrentTiltAngle>, pub target_tilt_angle: Option<TargetTiltAngle>, pub swing_mode: Option<SwingMode>, // some fields omitted }
Inner type of the Slat Service.
Fields
slat_type: SlatType
Slat Type Characteristic.
current_slat_state: CurrentSlatState
Current Slat State Characteristic.
name: Option<Name>
Name Characteristic.
current_tilt_angle: Option<CurrentTiltAngle>
Current Tilt Angle Characteristic.
target_tilt_angle: Option<TargetTiltAngle>
Target Tilt Angle Characteristic.
swing_mode: Option<SwingMode>
Swing Mode Characteristic.
Trait Implementations
impl Default for SlatInner
[src]
impl Default for SlatInner
impl HapService for SlatInner
[src]
impl HapService for SlatInner
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.