pub struct ThreadDiagHandler<'a> { /* private fields */ }Expand description
A cluster implementing the Matter Thread Diagnostics Cluster.
Implementations§
Source§impl<'a> ThreadDiagHandler<'a>
impl<'a> ThreadDiagHandler<'a>
Sourcepub const fn new(
dataver: Dataver,
diag: &'a dyn ThreadDiag,
) -> ThreadDiagHandler<'a>
pub const fn new( dataver: Dataver, diag: &'a dyn ThreadDiag, ) -> ThreadDiagHandler<'a>
Create a new instance.
Sourcepub const fn adapt(self) -> HandlerAdaptor<ThreadDiagHandler<'a>>
pub const fn adapt(self) -> HandlerAdaptor<ThreadDiagHandler<'a>>
Adapt the handler instance to the generic rs-matter Handler trait
Trait Implementations§
Source§impl<'a> Clone for ThreadDiagHandler<'a>
impl<'a> Clone for ThreadDiagHandler<'a>
Source§fn clone(&self) -> ThreadDiagHandler<'a>
fn clone(&self) -> ThreadDiagHandler<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ClusterHandler for ThreadDiagHandler<'_>
impl ClusterHandler for ThreadDiagHandler<'_>
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 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_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 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 handle_reset_counts(&self, _ctx: impl InvokeContext) -> Result<(), Error>
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 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>
Auto Trait Implementations§
impl<'a> !Freeze for ThreadDiagHandler<'a>
impl<'a> !RefUnwindSafe for ThreadDiagHandler<'a>
impl<'a> !Send for ThreadDiagHandler<'a>
impl<'a> !Sync for ThreadDiagHandler<'a>
impl<'a> !UnwindSafe for ThreadDiagHandler<'a>
impl<'a> Unpin for ThreadDiagHandler<'a>
impl<'a> UnsafeUnpin for ThreadDiagHandler<'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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.