Struct wasmer_vm::VMMemoryDefinition
source · Expand description
The fields compiled code needs to access to utilize a WebAssembly linear memory defined within the instance, namely the start address and the size in bytes.
Fields§
§base: *mut u8
The start address which is always valid, even if the memory grows.
current_length: usize
The current logical size of this linear memory in bytes.
Trait Implementations§
source§impl Clone for VMMemoryDefinition
impl Clone for VMMemoryDefinition
source§fn clone(&self) -> VMMemoryDefinition
fn clone(&self) -> VMMemoryDefinition
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 Debug for VMMemoryDefinition
impl Debug for VMMemoryDefinition
impl Copy for VMMemoryDefinition
impl Send for VMMemoryDefinition
Safety
This data is safe to share between threads because it’s plain data that is the user’s responsibility to synchronize.
impl Sync for VMMemoryDefinition
Safety
This data is safe to share between threads because it’s plain data that
is the user’s responsibility to synchronize. And it’s Copy
so there’s
really no difference between passing it by reference or by value as far as
correctness in a multi-threaded context is concerned.
Auto Trait Implementations§
impl RefUnwindSafe for VMMemoryDefinition
impl Unpin for VMMemoryDefinition
impl UnwindSafe for VMMemoryDefinition
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer