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