pub struct AnyFootprintReader(/* private fields */);Expand description
A type-erased FootprintReader, what the builders store.
Implementations§
Source§impl AnyFootprintReader
impl AnyFootprintReader
Sourcepub fn new(reader: impl FootprintReader) -> Self
pub fn new(reader: impl FootprintReader) -> Self
Erases reader.
Trait Implementations§
Source§impl Clone for AnyFootprintReader
impl Clone for AnyFootprintReader
Source§impl Debug for AnyFootprintReader
impl Debug for AnyFootprintReader
Source§impl FootprintReader for AnyFootprintReader
impl FootprintReader for AnyFootprintReader
Source§fn tree_footprints(&self, roots: &[u32]) -> Result<Vec<u64>, FootprintError>
fn tree_footprints(&self, roots: &[u32]) -> Result<Vec<u64>, FootprintError>
The physical footprint in bytes of each process tree rooted at
roots, in order, from one reading of the host. A tree whose root
has exited holds nothing. Read moreSource§fn physical_memory(&self) -> Result<u64, FootprintError>
fn physical_memory(&self) -> Result<u64, FootprintError>
The machine’s physical memory in bytes. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AnyFootprintReader
impl !UnwindSafe for AnyFootprintReader
impl Forget for AnyFootprintReader
impl Freeze for AnyFootprintReader
impl Move for AnyFootprintReader
impl Send for AnyFootprintReader
impl Sync for AnyFootprintReader
impl Unpin for AnyFootprintReader
impl UnsafeUnpin for AnyFootprintReader
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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