pub struct DeviceEnergyManagementClientView<'a> { /* private fields */ }Expand description
Per-exchange view onto the DeviceEnergyManagement cluster’s client operations. Returned by DeviceEnergyManagementClient::device_energy_management. Each method consumes the view (and therefore the underlying crate::transport::exchange::Exchange) — one exchange is one IM transaction.
Implementations§
Source§impl<'a> DeviceEnergyManagementClientView<'a>
impl<'a> DeviceEnergyManagementClientView<'a>
pub async fn power_adjust_request<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(PowerAdjustRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn cancel_power_adjust_request( self, endpoint: u16, ) -> Result<(), Error>
pub async fn start_time_adjust_request<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(StartTimeAdjustRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn pause_request<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(PauseRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn resume_request(self, endpoint: u16) -> Result<(), Error>
pub async fn modify_forecast_request<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(ModifyForecastRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn request_constraint_based_forecast<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(RequestConstraintBasedForecastRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn cancel_request(self, endpoint: u16) -> Result<(), Error>
pub async fn power_range_adjust_request<F>(
self,
endpoint: u16,
request: F,
) -> Result<(), Error>where
F: FnMut(PowerRangeAdjustRequestRequestBuilder<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>>) -> Result<CmdDataBuilder<CmdDataArrayBuilder<InvReqBuilder<InvokeSender<'a>, 3>>, 2>, Error>,
pub async fn cancel_power_range_adjust_request( self, endpoint: u16, ) -> Result<(), Error>
pub async fn esa_type_read(self, endpoint: u16) -> Result<ESATypeEnum, Error>
pub async fn esa_can_generate_read(self, endpoint: u16) -> Result<bool, Error>
pub async fn esa_state_read(self, endpoint: u16) -> Result<ESAStateEnum, Error>
pub async fn abs_min_power_read(self, endpoint: u16) -> Result<i64, Error>
pub async fn abs_max_power_read(self, endpoint: u16) -> Result<i64, Error>
Sourcepub async fn power_adjustment_capability_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<Maybe<PowerAdjustCapabilityStruct<'_>, AsNullable>, Error>) -> R,
) -> Result<R, Error>
pub async fn power_adjustment_capability_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<Maybe<PowerAdjustCapabilityStruct<'_>, AsNullable>, 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 forecast_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<Maybe<ForecastStruct<'_>, AsNullable>, Error>) -> R,
) -> Result<R, Error>
pub async fn forecast_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<Maybe<ForecastStruct<'_>, AsNullable>, 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 opt_out_state_read( self, endpoint: u16, ) -> Result<OptOutStateEnum, Error>
Sourcepub async fn power_range_adjustment_read_with<R>(
self,
endpoint: u16,
f: impl FnOnce(Result<Maybe<PowerRangeAdjustStruct<'_>, AsNullable>, Error>) -> R,
) -> Result<R, Error>
pub async fn power_range_adjustment_read_with<R>( self, endpoint: u16, f: impl FnOnce(Result<Maybe<PowerRangeAdjustStruct<'_>, AsNullable>, 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>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DeviceEnergyManagementClientView<'a>
impl<'a> !Send for DeviceEnergyManagementClientView<'a>
impl<'a> !Sync for DeviceEnergyManagementClientView<'a>
impl<'a> !UnwindSafe for DeviceEnergyManagementClientView<'a>
impl<'a> Freeze for DeviceEnergyManagementClientView<'a>
impl<'a> Unpin for DeviceEnergyManagementClientView<'a>
impl<'a> UnsafeUnpin for DeviceEnergyManagementClientView<'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