pub enum InvokeErrorKind {
Internal,
Timeout,
Trap,
OutputTooLarge,
InvalidOutput,
ExecutionFailed,
}Expand description
Stable categorisation of invoke failures.
Variants§
Internal
Host-side input serialisation or size check failed.
Timeout
Fuel budget or epoch deadline was hit. Retryable.
Trap
Wasmtime trap (unreachable, OOB, stack overflow, …).
OutputTooLarge
Handler output exceeded MAX_IO_BYTES.
InvalidOutput
Handler output failed JSON deserialisation on the host side.
ExecutionFailed
Guest reported invalid-model / invalid-input /
unsupported-capability / execution-failed via the WIT
handler-error variant. The variant detail is stored in
InvokeError::detail for host logs only.
Trait Implementations§
Source§impl Clone for InvokeErrorKind
impl Clone for InvokeErrorKind
Source§fn clone(&self) -> InvokeErrorKind
fn clone(&self) -> InvokeErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvokeErrorKind
Source§impl Debug for InvokeErrorKind
impl Debug for InvokeErrorKind
impl Eq for InvokeErrorKind
Source§impl PartialEq for InvokeErrorKind
impl PartialEq for InvokeErrorKind
impl StructuralPartialEq for InvokeErrorKind
Auto Trait Implementations§
impl Freeze for InvokeErrorKind
impl RefUnwindSafe for InvokeErrorKind
impl Send for InvokeErrorKind
impl Sync for InvokeErrorKind
impl Unpin for InvokeErrorKind
impl UnsafeUnpin for InvokeErrorKind
impl UnwindSafe for InvokeErrorKind
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.