Struct wasmer_wasix::runtime::task_manager::TaskWasmRunProperties
source · pub struct TaskWasmRunProperties {
pub ctx: WasiFunctionEnv,
pub store: Store,
pub trigger_result: Option<Result<Bytes, ExitCode>>,
pub recycle: Option<Box<TaskWasmRecycle>>,
}
Expand description
The properties passed to the task
Fields§
§ctx: WasiFunctionEnv
§store: Store
§trigger_result: Option<Result<Bytes, ExitCode>>
The result of the asynchronous trigger serialized into bytes using the bincode serializer When no trigger is associated with the run operation (i.e. spawning threads) then this will be None. (if the trigger returns an ExitCode then the WASM process will be terminated without resuming)
recycle: Option<Box<TaskWasmRecycle>>
The instance will be recycled back to this function when the WASM run has finished
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TaskWasmRunProperties
impl !RefUnwindSafe for TaskWasmRunProperties
impl Send for TaskWasmRunProperties
impl !Sync for TaskWasmRunProperties
impl Unpin for TaskWasmRunProperties
impl !UnwindSafe for TaskWasmRunProperties
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.