pub struct Querier { /* private fields */ }
Expand description
A memory usage querier.
Implementations§
Source§impl Querier
impl Querier
Sourcepub fn resident_set_size(&mut self) -> Option<usize>
pub fn resident_set_size(&mut self) -> Option<usize>
Gets the resident set size of this process, in bytes.
If the resident set size cannot be determined, None
is returned. This could be for a number of underlying
reasons, but should generally be considered an incredibly rare/unlikely event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Querier
impl RefUnwindSafe for Querier
impl Send for Querier
impl Sync for Querier
impl Unpin for Querier
impl UnwindSafe for Querier
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