Struct fluence_faas::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 str
memory_size: usize
max_memory_size: Option<usize>
Implementations
sourceimpl<'module_name> ModuleMemoryStat<'module_name>
impl<'module_name> ModuleMemoryStat<'module_name>
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> Deserialize<'de> for ModuleMemoryStat<'module_name> where
'de: 'module_name,
impl<'de, 'module_name> Deserialize<'de> for ModuleMemoryStat<'module_name> where
'de: 'module_name,
sourcefn 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
sourceimpl<'module_name> Serialize for ModuleMemoryStat<'module_name>
impl<'module_name> Serialize for ModuleMemoryStat<'module_name>
sourcefn 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
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