[−][src]Struct hap::characteristic::model::ModelCharacteristic
Model Characteristic.
Implementations
impl ModelCharacteristic[src]
Trait Implementations
impl AsyncCharacteristicCallbacks<String> for ModelCharacteristic[src]
pub fn on_read_async(&mut self, f: Option<impl OnReadFuture<String>>)[src]
pub fn on_update_async(&mut self, f: Option<impl OnUpdateFuture<String>>)[src]
impl CharacteristicCallbacks<String> for ModelCharacteristic[src]
pub fn on_read(&mut self, f: Option<impl OnReadFn<String>>)[src]
pub fn on_update(&mut self, f: Option<impl OnUpdateFn<String>>)[src]
impl Debug for ModelCharacteristic[src]
impl Default for ModelCharacteristic[src]
pub fn default() -> ModelCharacteristic[src]
impl HapCharacteristic for ModelCharacteristic[src]
pub fn get_id(&self) -> u64[src]
pub fn get_type(&self) -> HapType[src]
pub fn get_format(&self) -> Format[src]
pub fn get_perms(&self) -> Vec<Perm>[src]
pub fn get_event_notifications(&self) -> Option<bool>[src]
pub fn set_event_notifications(&mut self, event_notifications: Option<bool>)[src]
pub fn get_value<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn set_value<'life0, 'async_trait>(
&'life0 mut self,
value: Value
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 mut self,
value: Value
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
pub fn get_unit(&self) -> Option<Unit>[src]
pub fn get_max_value(&self) -> Option<Value>[src]
pub fn get_min_value(&self) -> Option<Value>[src]
pub fn get_step_value(&self) -> Option<Value>[src]
pub fn get_max_len(&self) -> Option<u16>[src]
impl HapCharacteristicSetup for ModelCharacteristic[src]
pub fn set_event_emitter(
&mut self,
event_emitter: Option<Arc<Mutex<EventEmitter>>>
)[src]
&mut self,
event_emitter: Option<Arc<Mutex<EventEmitter>>>
)
impl Serialize for ModelCharacteristic[src]
Auto Trait Implementations
impl !RefUnwindSafe for ModelCharacteristic
impl Send for ModelCharacteristic
impl Sync for ModelCharacteristic
impl Unpin for ModelCharacteristic
impl !UnwindSafe for ModelCharacteristic
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized, [src]
T: Serialize + ?Sized,
pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,