pub struct AmbientContextSensingClientView<'a> { /* private fields */ }Expand description
Per-exchange view onto the AmbientContextSensing cluster’s client operations. Returned by AmbientContextSensingClient::ambient_context_sensing. Each method consumes the view (and therefore the underlying crate::transport::exchange::Exchange) — one exchange is one IM transaction.
Implementations§
Source§impl<'a> AmbientContextSensingClientView<'a>
impl<'a> AmbientContextSensingClientView<'a>
pub async fn human_activity_detected_read( self, endpoint: u16, ) -> Result<bool, Error>
pub async fn object_identified_read(self, endpoint: u16) -> Result<bool, Error>
pub async fn audio_context_detected_read( self, endpoint: u16, ) -> Result<bool, Error>
Sourcepub async fn ambient_context_type_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, AmbientContextTypeStruct<'_>, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn ambient_context_type_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, AmbientContextTypeStruct<'_>, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn ambient_context_type_supported_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, SemanticTagStruct<'_>, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn ambient_context_type_supported_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, SemanticTagStruct<'_>, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn object_count_threshold_reached_read( self, endpoint: u16, ) -> Result<bool, Error>
Sourcepub async fn object_count_config_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<ObjectCountConfigStruct<'_>, Error>) -> R,
) -> Result<R, Error>
pub async fn object_count_config_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<ObjectCountConfigStruct<'_>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn object_count_read(self, endpoint: u16) -> Result<u16, Error>
pub async fn simultaneous_detection_limit_read( self, endpoint: u16, ) -> Result<u8, Error>
pub async fn hold_time_read(self, endpoint: u16) -> Result<u16, Error>
Sourcepub async fn hold_time_limits_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<HoldTimeLimitsStruct<'_>, Error>) -> R,
) -> Result<R, Error>
pub async fn hold_time_limits_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<HoldTimeLimitsStruct<'_>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn predicted_activity_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, PredictedActivityStruct<'_>, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn predicted_activity_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, PredictedActivityStruct<'_>, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn sensor_fusion_supported_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, SemanticTagStruct<'_>, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn sensor_fusion_supported_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, SemanticTagStruct<'_>, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn generated_command_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn generated_command_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn accepted_command_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn accepted_command_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
Sourcepub async fn attribute_list_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R,
) -> Result<R, Error>
pub async fn attribute_list_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<TLVContainer<'_, u32, ArrayContainer>, Error>) -> R, ) -> Result<R, Error>
Read a non-scalar attribute (string, octet string, struct or list) whose value borrows the response buffer. Decodes the value and passes Result<Value, Error> to f while the borrow is live, returning the owned R that f produces (copy out what you need, e.g. |v| v.map(|s| s.to_string())). A non-served optional attribute surfaces as Err to f.
pub async fn feature_map_read(self, endpoint: u16) -> Result<u32, Error>
pub async fn cluster_revision_read(self, endpoint: u16) -> Result<u16, Error>
pub async fn hold_time_write( self, endpoint: u16, value: u16, ) -> Result<(), Error>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AmbientContextSensingClientView<'a>
impl<'a> !Send for AmbientContextSensingClientView<'a>
impl<'a> !Sync for AmbientContextSensingClientView<'a>
impl<'a> !UnwindSafe for AmbientContextSensingClientView<'a>
impl<'a> Freeze for AmbientContextSensingClientView<'a>
impl<'a> Unpin for AmbientContextSensingClientView<'a>
impl<'a> UnsafeUnpin for AmbientContextSensingClientView<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more