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§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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
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> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§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.