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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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 more