Struct wasmer_runtime_fl::types::MemoryDescriptor [−][src]
pub struct MemoryDescriptor { pub minimum: Pages, pub maximum: Option<Pages>, pub shared: bool, pub memory_type: MemoryType, }
Expand description
A wasm memory descriptor.
Fields
minimum: Pages
The minimum number of allowed pages.
maximum: Option<Pages>
The maximum number of allowed pages.
This memory can be shared between wasm threads.
memory_type: MemoryType
The type of the memory
Implementations
Create a new memory descriptor with the given min/max pages and shared flag.
Returns the MemoryType
for this descriptor.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MemoryDescriptor, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MemoryDescriptor, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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 RefUnwindSafe for MemoryDescriptor
impl Send for MemoryDescriptor
impl Sync for MemoryDescriptor
impl Unpin for MemoryDescriptor
impl UnwindSafe for MemoryDescriptor
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
type Output = T
type Output = T
Should always be Self