pub struct NoMetrics;Expand description
A node that reports no software metrics at all.
Correct for a no_std, no-alloc device with no application heap, which is what this crate
is built for — and a conformant Software Diagnostics cluster, since §11.13.6 makes every
attribute optional.
Trait Implementations§
impl Copy for NoMetrics
Source§impl SoftwareMetrics for NoMetrics
impl SoftwareMetrics for NoMetrics
Source§fn thread_metrics(&self, emit: &mut dyn FnMut(&ThreadMetrics<'_>))
fn thread_metrics(&self, emit: &mut dyn FnMut(&ThreadMetrics<'_>))
Each active software thread in turn (§11.13.6.1).
Source§fn current_heap_free(&self) -> Option<u64>
fn current_heap_free(&self) -> Option<u64>
Heap bytes free for allocation. “The effective amount MAY be smaller due to heap
fragmentation or other reasons” — so this is an upper bound, not a promise.
Source§fn current_heap_used(&self) -> Option<u64>
fn current_heap_used(&self) -> Option<u64>
Heap bytes currently in use.
Source§fn current_heap_high_watermark(&self) -> Option<u64>
fn current_heap_high_watermark(&self) -> Option<u64>
The most heap that has ever been in use (§11.13.6.4). “This value SHALL only be reset
upon a Node reboot or upon receiving of the ResetWatermarks command.”
Source§fn reset_watermarks(&self)
fn reset_watermarks(&self)
§11.13.7.1’s
ResetWatermarks. Read moreAuto Trait Implementations§
impl Forget for NoMetrics
impl Freeze for NoMetrics
impl Move for NoMetrics
impl RefUnwindSafe for NoMetrics
impl Send for NoMetrics
impl Sync for NoMetrics
impl Unpin for NoMetrics
impl UnsafeUnpin for NoMetrics
impl UnwindSafe for NoMetrics
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