pub struct RuntimeInstanceData { /* private fields */ }
Implementations§
Source§impl RuntimeInstanceData
impl RuntimeInstanceData
Sourcepub fn memory_ref(&self) -> Option<&Memory>
pub fn memory_ref(&self) -> Option<&Memory>
Get access to the underlying data.
If WasmerEnv::finish
has been called, this function will never
return None
unless the underlying data has been mutated manually.
Sourcepub unsafe fn memory_ref_unchecked(&self) -> &Memory
pub unsafe fn memory_ref_unchecked(&self) -> &Memory
Gets the item without checking if it’s been initialized.
§Safety
WasmerEnv::finish
must have been called on this function or
this type manually initialized.
Sourcepub fn __fp_free_ref(&self) -> Option<&NativeFunc<FatPtr>>
pub fn __fp_free_ref(&self) -> Option<&NativeFunc<FatPtr>>
Get access to the underlying data.
If WasmerEnv::finish
has been called, this function will never
return None
unless the underlying data has been mutated manually.
Sourcepub unsafe fn __fp_free_ref_unchecked(&self) -> &NativeFunc<FatPtr>
pub unsafe fn __fp_free_ref_unchecked(&self) -> &NativeFunc<FatPtr>
Gets the item without checking if it’s been initialized.
§Safety
WasmerEnv::finish
must have been called on this function or
this type manually initialized.
Sourcepub fn __fp_guest_resolve_async_value_ref(
&self,
) -> Option<&NativeFunc<(FatPtr, FatPtr)>>
pub fn __fp_guest_resolve_async_value_ref( &self, ) -> Option<&NativeFunc<(FatPtr, FatPtr)>>
Get access to the underlying data.
If WasmerEnv::finish
has been called, this function will never
return None
unless the underlying data has been mutated manually.
Sourcepub unsafe fn __fp_guest_resolve_async_value_ref_unchecked(
&self,
) -> &NativeFunc<(FatPtr, FatPtr)>
pub unsafe fn __fp_guest_resolve_async_value_ref_unchecked( &self, ) -> &NativeFunc<(FatPtr, FatPtr)>
Gets the item without checking if it’s been initialized.
§Safety
WasmerEnv::finish
must have been called on this function or
this type manually initialized.
Sourcepub fn __fp_malloc_ref(&self) -> Option<&NativeFunc<u32, FatPtr>>
pub fn __fp_malloc_ref(&self) -> Option<&NativeFunc<u32, FatPtr>>
Get access to the underlying data.
If WasmerEnv::finish
has been called, this function will never
return None
unless the underlying data has been mutated manually.
Sourcepub unsafe fn __fp_malloc_ref_unchecked(&self) -> &NativeFunc<u32, FatPtr>
pub unsafe fn __fp_malloc_ref_unchecked(&self) -> &NativeFunc<u32, FatPtr>
Gets the item without checking if it’s been initialized.
§Safety
WasmerEnv::finish
must have been called on this function or
this type manually initialized.
Trait Implementations§
Source§impl Clone for RuntimeInstanceData
impl Clone for RuntimeInstanceData
Source§fn clone(&self) -> RuntimeInstanceData
fn clone(&self) -> RuntimeInstanceData
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for RuntimeInstanceData
impl Default for RuntimeInstanceData
Source§fn default() -> RuntimeInstanceData
fn default() -> RuntimeInstanceData
Source§impl WasmerEnv for RuntimeInstanceData
impl WasmerEnv for RuntimeInstanceData
Source§fn init_with_instance(
&mut self,
instance: &Instance,
) -> Result<(), HostEnvInitError>
fn init_with_instance( &mut self, instance: &Instance, ) -> Result<(), HostEnvInitError>
Instance
. Read moreAuto Trait Implementations§
impl Freeze for RuntimeInstanceData
impl !RefUnwindSafe for RuntimeInstanceData
impl Send for RuntimeInstanceData
impl Sync for RuntimeInstanceData
impl Unpin for RuntimeInstanceData
impl !UnwindSafe for RuntimeInstanceData
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more