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
sourceimpl Clone for VMMemoryDefinition
impl Clone for VMMemoryDefinition
sourcefn clone(&self) -> VMMemoryDefinition
fn clone(&self) -> VMMemoryDefinition
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 Debug for VMMemoryDefinition
impl Debug for VMMemoryDefinition
sourceimpl MemoryUsage for VMMemoryDefinition
impl MemoryUsage for VMMemoryDefinition
sourcefn size_of_val(&self, tracker: &mut dyn MemoryUsageTracker) -> usize
fn size_of_val(&self, tracker: &mut dyn MemoryUsageTracker) -> usize
Returns the size of the referenced value in bytes. Read more
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.
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<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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
sourceimpl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
sourcefn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
sourcefn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref