[−][src]Struct hap::accessory::Accessory
An Accessory. Accessories are the outermost data type defined by the HAP. They are comprised of services and characteristics.
Fields
inner: T
Trait Implementations
impl<T: HapAccessory> HapAccessory for Accessory<T>
[src]
fn get_id(&self) -> u64
[src]
fn set_id(&mut self, id: u64)
[src]
fn get_services(&self) -> Vec<&dyn HapAccessoryService>
[src]
fn get_mut_services(&mut self) -> Vec<&mut dyn HapAccessoryService>
[src]
fn get_mut_information(&mut self) -> &mut AccessoryInformation
[src]
fn init_iids(
&mut self,
accessory_id: u64,
event_emitter: Arc<Mutex<EventEmitter>>
) -> Result<()>
[src]
&mut self,
accessory_id: u64,
event_emitter: Arc<Mutex<EventEmitter>>
) -> Result<()>
impl<T: HapAccessory> Serialize for Accessory<T>
[src]
Auto Trait Implementations
impl<T> Sync for Accessory<T> where
T: Sync,
T: Sync,
impl<T> Send for Accessory<T> where
T: Send,
T: Send,
impl<T> Unpin for Accessory<T> where
T: Unpin,
T: Unpin,
impl<T> RefUnwindSafe for Accessory<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> UnwindSafe for Accessory<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self