pub trait ClusterAsyncHandler {
const CLUSTER: Cluster<'static>;
Show 70 methods
// Required methods
fn dataver(&self) -> u32;
fn dataver_changed(&self);
async fn channel(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u16, AsNullable>, Error>;
async fn routing_role(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<RoutingRoleEnum, AsNullable>, Error>;
async fn network_name<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, Utf8StrBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn pan_id(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u16, AsNullable>, Error>;
async fn extended_pan_id(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u64, AsNullable>, Error>;
async fn mesh_local_prefix<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, OctetsBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn neighbor_table<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<NeighborTableStructArrayBuilder<P>, NeighborTableStructBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn route_table<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<RouteTableStructArrayBuilder<P>, RouteTableStructBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn partition_id(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u32, AsNullable>, Error>;
async fn weighting(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u16, AsNullable>, Error>;
async fn data_version(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u16, AsNullable>, Error>;
async fn stable_data_version(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u16, AsNullable>, Error>;
async fn leader_router_id(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u8, AsNullable>, Error>;
async fn security_policy<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, SecurityPolicyBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn channel_page_0_mask<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, OctetsBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn operational_dataset_components<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, OperationalDatasetComponentsBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn active_network_faults_list<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<ToTLVArrayBuilder<P, NetworkFaultEnum>, ToTLVBuilder<P, NetworkFaultEnum>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
async fn ext_address(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u64, AsNullable>, Error>;
async fn rloc_16(
&self,
ctx: impl ReadContext,
) -> Result<Maybe<u16, AsNullable>, Error>;
async fn handle_reset_counts(
&self,
ctx: impl InvokeContext,
) -> Result<(), Error>;
// Provided methods
fn lifecycle(
&self,
_ctx: impl HandlerContext,
_op: LifecycleOp,
) -> Result<(), Error> { ... }
fn run(
&self,
_ctx: impl HandlerContext,
) -> impl Future<Output = Result<(), Error>> { ... }
fn overrun_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u64, Error>> { ... }
fn detached_role_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn child_role_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn router_role_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn leader_role_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn attach_attempt_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn partition_id_change_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn better_partition_attach_attempt_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn parent_change_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u16, Error>> { ... }
fn tx_total_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_unicast_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_broadcast_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_ack_requested_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_acked_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_no_ack_requested_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_data_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_data_poll_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_beacon_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_beacon_request_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_other_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_retry_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_direct_max_retry_expiry_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_indirect_max_retry_expiry_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_err_cca_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_err_abort_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn tx_err_busy_channel_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_total_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_unicast_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_broadcast_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_data_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_data_poll_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_beacon_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_beacon_request_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_other_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_address_filtered_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_dest_addr_filtered_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_duplicated_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_err_no_frame_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_err_unknown_neighbor_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_err_invalid_src_addr_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_err_sec_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_err_fcs_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn rx_err_other_count(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<u32, Error>> { ... }
fn active_timestamp(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<Maybe<u64, AsNullable>, Error>> { ... }
fn pending_timestamp(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<Maybe<u64, AsNullable>, Error>> { ... }
fn delay(
&self,
ctx: impl ReadContext,
) -> impl Future<Output = Result<Maybe<u32, AsNullable>, Error>> { ... }
}Expand description
The handler trait for the cluster.
Required Associated Constants§
Required Methods§
fn dataver(&self) -> u32
fn dataver_changed(&self)
async fn channel( &self, ctx: impl ReadContext, ) -> Result<Maybe<u16, AsNullable>, Error>
async fn routing_role( &self, ctx: impl ReadContext, ) -> Result<Maybe<RoutingRoleEnum, AsNullable>, Error>
async fn network_name<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, Utf8StrBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn pan_id( &self, ctx: impl ReadContext, ) -> Result<Maybe<u16, AsNullable>, Error>
async fn extended_pan_id( &self, ctx: impl ReadContext, ) -> Result<Maybe<u64, AsNullable>, Error>
async fn mesh_local_prefix<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, OctetsBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn neighbor_table<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<NeighborTableStructArrayBuilder<P>, NeighborTableStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn route_table<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<RouteTableStructArrayBuilder<P>, RouteTableStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn partition_id( &self, ctx: impl ReadContext, ) -> Result<Maybe<u32, AsNullable>, Error>
async fn weighting( &self, ctx: impl ReadContext, ) -> Result<Maybe<u16, AsNullable>, Error>
async fn data_version( &self, ctx: impl ReadContext, ) -> Result<Maybe<u16, AsNullable>, Error>
async fn stable_data_version( &self, ctx: impl ReadContext, ) -> Result<Maybe<u16, AsNullable>, Error>
async fn leader_router_id( &self, ctx: impl ReadContext, ) -> Result<Maybe<u8, AsNullable>, Error>
async fn security_policy<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, SecurityPolicyBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn channel_page_0_mask<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, OctetsBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn operational_dataset_components<P>(
&self,
ctx: impl ReadContext,
builder: NullableBuilder<P, OperationalDatasetComponentsBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn active_network_faults_list<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<ToTLVArrayBuilder<P, NetworkFaultEnum>, ToTLVBuilder<P, NetworkFaultEnum>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn ext_address( &self, ctx: impl ReadContext, ) -> Result<Maybe<u64, AsNullable>, Error>
async fn rloc_16( &self, ctx: impl ReadContext, ) -> Result<Maybe<u16, AsNullable>, Error>
async fn handle_reset_counts( &self, ctx: impl InvokeContext, ) -> Result<(), Error>
Provided Methods§
fn lifecycle( &self, _ctx: impl HandlerContext, _op: LifecycleOp, ) -> Result<(), Error>
fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>
fn overrun_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u64, Error>>
fn detached_role_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn child_role_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn router_role_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn leader_role_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn attach_attempt_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn partition_id_change_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn better_partition_attach_attempt_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn parent_change_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>
fn tx_total_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_unicast_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_broadcast_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_ack_requested_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_acked_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_no_ack_requested_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_data_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_data_poll_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_beacon_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_beacon_request_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_other_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_retry_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_direct_max_retry_expiry_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_indirect_max_retry_expiry_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_err_cca_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_err_abort_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn tx_err_busy_channel_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_total_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_unicast_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_broadcast_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_data_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_data_poll_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_beacon_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_beacon_request_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_other_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_address_filtered_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_dest_addr_filtered_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_duplicated_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_err_no_frame_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_err_unknown_neighbor_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_err_invalid_src_addr_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_err_sec_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_err_fcs_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn rx_err_other_count( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>
fn active_timestamp( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<u64, AsNullable>, Error>>
fn pending_timestamp( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<u64, AsNullable>, Error>>
fn delay( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<Maybe<u32, AsNullable>, Error>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".