pub struct StatsNode { /* private fields */ }
Expand description
Contains information about inspect such as size and number of dynamic children.
Implementations§
Source§impl StatsNode
impl StatsNode
Sourcepub fn new(inspector: &Inspector) -> Self
pub fn new(inspector: &Inspector) -> Self
Takes a snapshot of the stats and writes them to the given parent.
The returned StatsNode
is RAII.
Sourcepub fn update(&self)
pub fn update(&self)
Update the stats with the current state of the Inspector being instrumented.
Sourcepub fn record_data_to(self, lifetime: &Node)
pub fn record_data_to(self, lifetime: &Node)
Tie the lifetime of the statistics to the provided fuchsia_inspect::Node
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatsNode
impl !RefUnwindSafe for StatsNode
impl Send for StatsNode
impl Sync for StatsNode
impl Unpin for StatsNode
impl !UnwindSafe for StatsNode
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