Struct marine::ModuleMemoryStat
source · pub struct ModuleMemoryStat<'module_name> {
pub name: &'module_name str,
pub memory_size: 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
Implementations§
source§impl<'module_name> ModuleMemoryStat<'module_name>
impl<'module_name> ModuleMemoryStat<'module_name>
pub fn new( module_name: &'module_name str, memory_size: usize ) -> ModuleMemoryStat<'module_name>
Trait Implementations§
source§impl<'module_name> Clone for ModuleMemoryStat<'module_name>
impl<'module_name> Clone for ModuleMemoryStat<'module_name>
source§fn clone(&self) -> ModuleMemoryStat<'module_name>
fn clone(&self) -> ModuleMemoryStat<'module_name>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'module_name> Debug for ModuleMemoryStat<'module_name>
impl<'module_name> Debug for ModuleMemoryStat<'module_name>
source§impl<'module_name> Default for ModuleMemoryStat<'module_name>
impl<'module_name> Default for ModuleMemoryStat<'module_name>
source§fn default() -> ModuleMemoryStat<'module_name>
fn default() -> ModuleMemoryStat<'module_name>
Returns the “default value” for a type. Read more
source§impl<'de, 'module_name> Deserialize<'de> for ModuleMemoryStat<'module_name>where
'de: 'module_name,
impl<'de, 'module_name> Deserialize<'de> for ModuleMemoryStat<'module_name>where
'de: 'module_name,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ModuleMemoryStat<'module_name>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ModuleMemoryStat<'module_name>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'module_name> Serialize for ModuleMemoryStat<'module_name>
impl<'module_name> Serialize for ModuleMemoryStat<'module_name>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
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<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.