pub trait ClusterAsyncHandler {
const CLUSTER: Cluster<'static>;
Show 22 methods
// Required methods
fn dataver(&self) -> u32;
fn dataver_changed(&self);
async fn breadcrumb(&self, ctx: impl ReadContext) -> Result<u64, Error>;
async fn basic_commissioning_info<P>(
&self,
ctx: impl ReadContext,
builder: BasicCommissioningInfoBuilder<P>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn regulatory_config(
&self,
ctx: impl ReadContext,
) -> Result<RegulatoryLocationTypeEnum, Error>;
async fn location_capability(
&self,
ctx: impl ReadContext,
) -> Result<RegulatoryLocationTypeEnum, Error>;
async fn supports_concurrent_connection(
&self,
ctx: impl ReadContext,
) -> Result<bool, Error>;
async fn set_breadcrumb(
&self,
ctx: impl WriteContext,
value: u64,
) -> Result<(), Error>;
async fn handle_arm_fail_safe<P>(
&self,
ctx: impl InvokeContext,
request: ArmFailSafeRequest<'_>,
response: ArmFailSafeResponseBuilder<P>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn handle_set_regulatory_config<P>(
&self,
ctx: impl InvokeContext,
request: SetRegulatoryConfigRequest<'_>,
response: SetRegulatoryConfigResponseBuilder<P>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn handle_commissioning_complete<P>(
&self,
ctx: impl InvokeContext,
response: CommissioningCompleteResponseBuilder<P>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn handle_set_tc_acknowledgements<P>(
&self,
ctx: impl InvokeContext,
request: SetTCAcknowledgementsRequest<'_>,
response: SetTCAcknowledgementsResponseBuilder<P>,
) -> Result<P, Error>
where P: TLVBuilderParent;
// Provided methods
fn lifecycle(
&self,
_ctx: impl HandlerContext,
_op: LifecycleOp,
) -> Result<(), Error> { ... }
fn run(
&self,
_ctx: impl HandlerContext,
) -> impl Future<Output = Result<(), Error>> { ... }
fn tc_accepted_version(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn tc_min_required_version(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn tc_acknowledgements(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn tc_acknowledgements_required(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<bool, Error>> { ... }
fn tc_update_deadline(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<Maybe<u32, AsNullable>, Error>> { ... }
fn recovery_identifier<P>(
&self,
ctx: impl ReadContext,
builder: OctetsBuilder<P>,
) -> impl Future<Output = Result<P, Error>>
where P: TLVBuilderParent { ... }
fn network_recovery_reason(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<Maybe<NetworkRecoveryReasonEnum, AsNullable>, Error>> { ... }
fn is_commissioning_without_power(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<bool, Error>> { ... }
}Expand description
The handler trait for the cluster.
Required Associated Constants§
Required Methods§
fn dataver(&self) -> u32
fn dataver_changed(&self)
async fn basic_commissioning_info<P>(
&self,
ctx: impl ReadContext,
builder: BasicCommissioningInfoBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn regulatory_config( &self, ctx: impl ReadContext, ) -> Result<RegulatoryLocationTypeEnum, Error>
async fn location_capability( &self, ctx: impl ReadContext, ) -> Result<RegulatoryLocationTypeEnum, Error>
async fn supports_concurrent_connection( &self, ctx: impl ReadContext, ) -> Result<bool, Error>
async fn handle_arm_fail_safe<P>(
&self,
ctx: impl InvokeContext,
request: ArmFailSafeRequest<'_>,
response: ArmFailSafeResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn handle_set_regulatory_config<P>(
&self,
ctx: impl InvokeContext,
request: SetRegulatoryConfigRequest<'_>,
response: SetRegulatoryConfigResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn handle_commissioning_complete<P>(
&self,
ctx: impl InvokeContext,
response: CommissioningCompleteResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn handle_set_tc_acknowledgements<P>(
&self,
ctx: impl InvokeContext,
request: SetTCAcknowledgementsRequest<'_>,
response: SetTCAcknowledgementsResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
Provided Methods§
fn lifecycle( &self, _ctx: impl HandlerContext, _op: LifecycleOp, ) -> Result<(), Error>
fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>
fn tc_accepted_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn tc_min_required_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn tc_acknowledgements( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn tc_acknowledgements_required( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>
fn tc_update_deadline( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<u32, AsNullable>, Error>>
fn recovery_identifier<P>(
&self,
ctx: impl ReadContext,
builder: OctetsBuilder<P>,
) -> impl Future<Output = Result<P, Error>>where
P: TLVBuilderParent,
fn network_recovery_reason( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<NetworkRecoveryReasonEnum, AsNullable>, Error>>
fn is_commissioning_without_power( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".