Skip to main content

ClusterAsyncHandler

Trait ClusterAsyncHandler 

Source
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§

Source

const CLUSTER: Cluster<'static>

The cluster-metadata corresponding to this handler trait.

Required Methods§

Source

fn dataver(&self) -> u32

Source

fn dataver_changed(&self)

Source

async fn breadcrumb(&self, ctx: impl ReadContext) -> Result<u64, Error>

Source

async fn basic_commissioning_info<P>( &self, ctx: impl ReadContext, builder: BasicCommissioningInfoBuilder<P>, ) -> Result<P, Error>

Source

async fn regulatory_config( &self, ctx: impl ReadContext, ) -> Result<RegulatoryLocationTypeEnum, Error>

Source

async fn location_capability( &self, ctx: impl ReadContext, ) -> Result<RegulatoryLocationTypeEnum, Error>

Source

async fn supports_concurrent_connection( &self, ctx: impl ReadContext, ) -> Result<bool, Error>

Source

async fn set_breadcrumb( &self, ctx: impl WriteContext, value: u64, ) -> Result<(), Error>

Source

async fn handle_arm_fail_safe<P>( &self, ctx: impl InvokeContext, request: ArmFailSafeRequest<'_>, response: ArmFailSafeResponseBuilder<P>, ) -> Result<P, Error>

Source

async fn handle_set_regulatory_config<P>( &self, ctx: impl InvokeContext, request: SetRegulatoryConfigRequest<'_>, response: SetRegulatoryConfigResponseBuilder<P>, ) -> Result<P, Error>

Source

async fn handle_commissioning_complete<P>( &self, ctx: impl InvokeContext, response: CommissioningCompleteResponseBuilder<P>, ) -> Result<P, Error>

Source

async fn handle_set_tc_acknowledgements<P>( &self, ctx: impl InvokeContext, request: SetTCAcknowledgementsRequest<'_>, response: SetTCAcknowledgementsResponseBuilder<P>, ) -> Result<P, Error>

Provided Methods§

Source

fn lifecycle( &self, _ctx: impl HandlerContext, _op: LifecycleOp, ) -> Result<(), Error>

Source

fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>

Source

fn tc_accepted_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source

fn tc_min_required_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source

fn tc_acknowledgements( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source

fn tc_acknowledgements_required( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source

fn tc_update_deadline( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<u32, AsNullable>, Error>>

Source

fn recovery_identifier<P>( &self, ctx: impl ReadContext, builder: OctetsBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source

fn network_recovery_reason( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<NetworkRecoveryReasonEnum, AsNullable>, Error>>

Source

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".

Implementations on Foreign Types§

Source§

impl<T> ClusterAsyncHandler for &T

Source§

const CLUSTER: Cluster<'static> = T::CLUSTER

Source§

fn dataver(&self) -> u32

Source§

fn dataver_changed(&self)

Source§

fn lifecycle( &self, ctx: impl HandlerContext, op: LifecycleOp, ) -> Result<(), Error>

Source§

fn run( &self, ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>

Source§

fn breadcrumb( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u64, Error>>

Source§

fn basic_commissioning_info<P>( &self, ctx: impl ReadContext, builder: BasicCommissioningInfoBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn regulatory_config( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<RegulatoryLocationTypeEnum, Error>>

Source§

fn location_capability( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<RegulatoryLocationTypeEnum, Error>>

Source§

fn supports_concurrent_connection( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source§

fn tc_accepted_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn tc_min_required_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn tc_acknowledgements( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn tc_acknowledgements_required( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source§

fn tc_update_deadline( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<u32, AsNullable>, Error>>

Source§

fn recovery_identifier<P>( &self, ctx: impl ReadContext, builder: OctetsBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn network_recovery_reason( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<NetworkRecoveryReasonEnum, AsNullable>, Error>>

Source§

fn is_commissioning_without_power( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source§

fn set_breadcrumb( &self, ctx: impl WriteContext, value: u64, ) -> impl Future<Output = Result<(), Error>>

Source§

fn handle_arm_fail_safe<P>( &self, ctx: impl InvokeContext, request: ArmFailSafeRequest<'_>, response: ArmFailSafeResponseBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn handle_set_regulatory_config<P>( &self, ctx: impl InvokeContext, request: SetRegulatoryConfigRequest<'_>, response: SetRegulatoryConfigResponseBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn handle_commissioning_complete<P>( &self, ctx: impl InvokeContext, response: CommissioningCompleteResponseBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn handle_set_tc_acknowledgements<P>( &self, ctx: impl InvokeContext, request: SetTCAcknowledgementsRequest<'_>, response: SetTCAcknowledgementsResponseBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Implementors§