Struct scoundrel::StorageMemoryUsage
source · [−]pub struct StorageMemoryUsage {
pub storage_name: Cow<'static, str>,
pub used_memory_bytes: usize,
pub allocated_memory_bytes: usize,
pub component_count: usize,
}
Expand description
A trait to querry the amount of memory a storage uses.
Fields
storage_name: Cow<'static, str>
used_memory_bytes: usize
Amount of memory used by the storage in bytes.
allocated_memory_bytes: usize
Amount of memory allocated by the storage in bytes (including reserved memory).
component_count: usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StorageMemoryUsage
impl Send for StorageMemoryUsage
impl Sync for StorageMemoryUsage
impl Unpin for StorageMemoryUsage
impl UnwindSafe for StorageMemoryUsage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.