Skip to main content

InvokeResult

Type Alias InvokeResult 

Source
pub type InvokeResult = Result<Vec<u8>, InvokeError>;
Expand description

The postcard-encoded value circlet.invoke writes back into guest memory: either the sub-action’s opaque output bytes or a structured InvokeError.

Aliased Type§

pub enum InvokeResult {
    Ok(Vec<u8>),
    Err(GuestError),
}

Variants§

§1.0.0

Ok(Vec<u8>)

Contains the success value

§1.0.0

Err(GuestError)

Contains the error value