Struct wasmer_wasix::syscalls::FunctionEnvMut
pub(crate) struct FunctionEnvMut<'a, T>where
T: 'a,{
pub(crate) store_mut: StoreMut<'a>,
pub(crate) func_env: FunctionEnv<T>,
}
Expand description
A temporary handle to a FunctionEnv
.
Fields§
§store_mut: StoreMut<'a>
§func_env: FunctionEnv<T>
Implementations§
§impl<T> FunctionEnvMut<'_, T>where
T: Send + 'static,
impl<T> FunctionEnvMut<'_, T>where
T: Send + 'static,
pub fn data_mut(&mut self) -> &mut T
pub fn data_mut(&mut self) -> &mut T
Returns a mutable- reference to the host state in this function environement.
pub fn as_ref(&self) -> FunctionEnv<T>
pub fn as_ref(&self) -> FunctionEnv<T>
Borrows a new immmutable reference
pub fn as_mut(&mut self) -> FunctionEnvMut<'_, T>
pub fn as_mut(&mut self) -> FunctionEnvMut<'_, T>
Borrows a new mutable reference
pub fn data_and_store_mut(&mut self) -> (&mut T, StoreMut<'_>)
pub fn data_and_store_mut(&mut self) -> (&mut T, StoreMut<'_>)
Borrows a new mutable reference of both the attached Store and host state
Trait Implementations§
§impl<T> AsStoreMut for FunctionEnvMut<'_, T>
impl<T> AsStoreMut for FunctionEnvMut<'_, T>
§fn as_store_mut(&mut self) -> StoreMut<'_>
fn as_store_mut(&mut self) -> StoreMut<'_>
Returns a
StoreMut
pointing to the underlying context.§fn objects_mut(&mut self) -> &mut StoreObjects
fn objects_mut(&mut self) -> &mut StoreObjects
Returns the ObjectMutable
§impl<T> AsStoreRef for FunctionEnvMut<'_, T>
impl<T> AsStoreRef for FunctionEnvMut<'_, T>
§fn as_store_ref(&self) -> StoreRef<'_>
fn as_store_ref(&self) -> StoreRef<'_>
Returns a
StoreRef
pointing to the underlying context.Auto Trait Implementations§
impl<'a, T> Freeze for FunctionEnvMut<'a, T>
impl<'a, T> !RefUnwindSafe for FunctionEnvMut<'a, T>
impl<'a, T> !Send for FunctionEnvMut<'a, T>
impl<'a, T> !Sync for FunctionEnvMut<'a, T>
impl<'a, T> Unpin for FunctionEnvMut<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for FunctionEnvMut<'a, T>
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.
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.