pub struct ModuleMemoryStat<'module_name> {
pub name: &'module_name str,
pub memory_size: usize,
pub max_memory_size: Option<usize>,
}
Expand description
Contains module name and a size of its linear memory in bytes. Please note that linear memory contains not only heap, but globals, shadow stack and so on. Although it doesn’t contain operand stack, additional runtime (Wasmer) structures, and some other stuff, that should be count separately.
Fields
name: &'module_name str
memory_size: usize
max_memory_size: Option<usize>
Implementations
impl<'module_name> ModuleMemoryStat<'module_name>
impl<'module_name> ModuleMemoryStat<'module_name>
Trait Implementations
Auto Trait Implementations
impl<'module_name> RefUnwindSafe for ModuleMemoryStat<'module_name>
impl<'module_name> Send for ModuleMemoryStat<'module_name>
impl<'module_name> Sync for ModuleMemoryStat<'module_name>
impl<'module_name> Unpin for ModuleMemoryStat<'module_name>
impl<'module_name> UnwindSafe for ModuleMemoryStat<'module_name>
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