pub enum InvokeOutcome {
Output(InvokeResponse),
Error {
error: InvokeError,
pixie: u64,
},
}Expand description
What Host::invoke returns when the host itself did not fault: either the
sub-action’s output or a structured InvokeError, each carrying what
the sub-action actually spent in pixie.
A host/policy/security denial still returns Err(String) from
Host::invoke and traps the calling cast as HostFailed.
Variants§
Output(InvokeResponse)
The sub-action produced output bytes.
Error
The sub-action returned a structured error handed back to guest code.
Fields
§
error: InvokeErrorThe structured error returned to the guest.
Implementations§
Trait Implementations§
Source§impl Clone for InvokeOutcome
impl Clone for InvokeOutcome
Source§impl Debug for InvokeOutcome
impl Debug for InvokeOutcome
Source§impl<'de> Deserialize<'de> for InvokeOutcome
impl<'de> Deserialize<'de> for InvokeOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InvokeOutcome
Source§impl From<InvokeResponse> for InvokeOutcome
impl From<InvokeResponse> for InvokeOutcome
Source§fn from(resp: InvokeResponse) -> Self
fn from(resp: InvokeResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvokeOutcome
impl PartialEq for InvokeOutcome
Source§impl Serialize for InvokeOutcome
impl Serialize for InvokeOutcome
impl StructuralPartialEq for InvokeOutcome
Auto Trait Implementations§
impl Forget for InvokeOutcome
impl Freeze for InvokeOutcome
impl Move for InvokeOutcome
impl RefUnwindSafe for InvokeOutcome
impl Send for InvokeOutcomewhere
RawVecInner: Send,
impl Sync for InvokeOutcomewhere
RawVecInner: Sync,
impl Unpin for InvokeOutcome
impl UnsafeUnpin for InvokeOutcome
impl UnwindSafe for InvokeOutcomewhere
RawVecInner: UnwindSafe,
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