pub enum HapCharacteristicValue {
Bool(bool),
UInt8(u8),
Float(f64),
}Expand description
Typed value carried by a HAP characteristic update.
Variants§
Trait Implementations§
Source§impl Clone for HapCharacteristicValue
impl Clone for HapCharacteristicValue
Source§fn clone(&self) -> HapCharacteristicValue
fn clone(&self) -> HapCharacteristicValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HapCharacteristicValue
impl Debug for HapCharacteristicValue
Source§impl<'de> Deserialize<'de> for HapCharacteristicValue
impl<'de> Deserialize<'de> for HapCharacteristicValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HapCharacteristicValue
impl PartialEq for HapCharacteristicValue
Source§impl Serialize for HapCharacteristicValue
impl Serialize for HapCharacteristicValue
impl StructuralPartialEq for HapCharacteristicValue
Auto Trait Implementations§
impl Freeze for HapCharacteristicValue
impl RefUnwindSafe for HapCharacteristicValue
impl Send for HapCharacteristicValue
impl Sync for HapCharacteristicValue
impl Unpin for HapCharacteristicValue
impl UnsafeUnpin for HapCharacteristicValue
impl UnwindSafe for HapCharacteristicValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more