Struct marine::ModuleMemoryStat
source · [−]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 strmemory_size: usizemax_memory_size: Option<usize>Implementations
Trait Implementations
sourceimpl<'module_name> Clone for ModuleMemoryStat<'module_name>
impl<'module_name> Clone for ModuleMemoryStat<'module_name>
sourcefn clone(&self) -> ModuleMemoryStat<'module_name>
fn clone(&self) -> ModuleMemoryStat<'module_name>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'module_name> Debug for ModuleMemoryStat<'module_name>
impl<'module_name> Debug for ModuleMemoryStat<'module_name>
sourceimpl<'module_name> Default for ModuleMemoryStat<'module_name>
impl<'module_name> Default for ModuleMemoryStat<'module_name>
sourcefn default() -> ModuleMemoryStat<'module_name>
fn default() -> ModuleMemoryStat<'module_name>
Returns the “default value” for a type. Read more
sourceimpl<'de: 'module_name, 'module_name> Deserialize<'de> for ModuleMemoryStat<'module_name>
impl<'de: 'module_name, 'module_name> Deserialize<'de> for ModuleMemoryStat<'module_name>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'module_name> Serialize for ModuleMemoryStat<'module_name>
impl<'module_name> Serialize for ModuleMemoryStat<'module_name>
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more