pub struct ThreadNetworkDiagnostics<'a, D: ThreadDriver, const E: usize = 4> { /* private fields */ }Expand description
The Thread Network Diagnostics cluster (§11.14).
E is how many events the cluster holds before the oldest is dropped. A stack that flaps
must not be able to grow this, and the device drains it every time round its own loop.
Implementations§
Source§impl<'a, D: ThreadDriver, const E: usize> ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D: ThreadDriver, const E: usize> ThreadNetworkDiagnostics<'a, D, E>
Trait Implementations§
Source§impl<D: ThreadDriver, const E: usize> Cluster for ThreadNetworkDiagnostics<'_, D, E>
So a tuple of clusters can dispatch to it by id.
impl<D: ThreadDriver, const E: usize> Cluster for ThreadNetworkDiagnostics<'_, D, E>
So a tuple of clusters can dispatch to it by id.
Source§impl<D: ThreadDriver, const E: usize> ClusterHandler for ThreadNetworkDiagnostics<'_, D, E>
impl<D: ThreadDriver, const E: usize> ClusterHandler for ThreadNetworkDiagnostics<'_, D, E>
Source§fn read(
&self,
resolved: &Resolved<'_>,
_ctx: &InteractionContext<'_>,
w: &mut TlvWriter<'_>,
tag: Tag,
) -> Result<(), Status>
fn read( &self, resolved: &Resolved<'_>, _ctx: &InteractionContext<'_>, w: &mut TlvWriter<'_>, tag: Tag, ) -> Result<(), Status>
Source§fn invoke(
&self,
resolved: &ResolvedCommand<'_>,
_fields: Option<&[u8]>,
_ctx: &InteractionContext<'_>,
_w: &mut TlvWriter<'_>,
_tag: Tag,
) -> Result<Option<CommandId>, StatusIb>
fn invoke( &self, resolved: &ResolvedCommand<'_>, _fields: Option<&[u8]>, _ctx: &InteractionContext<'_>, _w: &mut TlvWriter<'_>, _tag: Tag, ) -> Result<Option<CommandId>, StatusIb>
Runs a command. Read more
Source§fn data_version(&self, _resolved: &Resolved<'_>) -> Option<u32>
fn data_version(&self, _resolved: &Resolved<'_>) -> Option<u32>
The cluster instance’s data version (§7.10.3), if it tracks one. Read more
Auto Trait Implementations§
impl<'a, D, const E: usize = 4> !Freeze for ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D, const E: usize = 4> !RefUnwindSafe for ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D, const E: usize = 4> !Sync for ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D, const E: usize> Forget for ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D, const E: usize> Move for ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D, const E: usize> Send for ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D, const E: usize> Unpin for ThreadNetworkDiagnostics<'a, D, E>
impl<'a, D, const E: usize> UnsafeUnpin for ThreadNetworkDiagnostics<'a, D, E>where
&'a D: UnsafeUnpin,
RefCell<VecInner<Event, usize, VecStorageInner<[MaybeUninit<Event>; E]>>>: UnsafeUnpin,
impl<'a, D, const E: usize> UnwindSafe for ThreadNetworkDiagnostics<'a, D, E>where
&'a D: UnwindSafe,
RefCell<VecInner<Event, usize, VecStorageInner<[MaybeUninit<Event>; E]>>>: UnwindSafe,
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