Struct fuchsia_inspect::stats::StatsNode
source · 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