Struct aleo_wasm::programs::response::ExecutionResponse
source · pub struct ExecutionResponse { /* private fields */ }
Expand description
Webassembly Representation of an Aleo function execution response
This object is returned by the execution of an Aleo function off-chain. It provides methods for retrieving the outputs of the function execution.
Implementations§
source§impl ExecutionResponse
impl ExecutionResponse
sourcepub fn get_outputs(&self) -> Array
pub fn get_outputs(&self) -> Array
Get the outputs of the executed function
@returns {Array} Array of strings representing the outputs of the function
sourcepub fn get_execution(&self) -> Option<Execution>
pub fn get_execution(&self) -> Option<Execution>
Returns the execution object if present, null if otherwise.
@returns {Execution | undefined} The execution object if present, null if otherwise
sourcepub fn get_proving_key(&mut self) -> Option<ProvingKey>
pub fn get_proving_key(&mut self) -> Option<ProvingKey>
Returns the proving_key if the proving key was cached in the Execution response. Note the proving key is removed from the response object after the first call to this function. Subsequent calls will return null.
@returns {ProvingKey | undefined} The proving key
sourcepub fn get_verifying_key(&self) -> VerifyingKey
pub fn get_verifying_key(&self) -> VerifyingKey
Returns the verifying_key associated with the program
@returns {VerifyingKey} The verifying key
sourcepub fn get_function_id(&self) -> String
pub fn get_function_id(&self) -> String
Returns the function identifier
sourcepub fn get_program(&self) -> Program
pub fn get_program(&self) -> Program
Returns the program
Methods from Deref<Target = Response<Testnet3>>§
pub fn output_ids(&self) -> &[OutputID<N>]
pub fn output_ids(&self) -> &[OutputID<N>]
Returns the output ID for the transition.
pub fn outputs(&self) -> &[Value<N>]
pub fn outputs(&self) -> &[Value<N>]
Returns the function outputs.
Trait Implementations§
source§impl Deref for ExecutionResponse
impl Deref for ExecutionResponse
source§impl From<ExecutionResponse> for JsValue
impl From<ExecutionResponse> for JsValue
source§fn from(value: ExecutionResponse) -> Self
fn from(value: ExecutionResponse) -> Self
source§impl FromWasmAbi for ExecutionResponse
impl FromWasmAbi for ExecutionResponse
source§impl IntoWasmAbi for ExecutionResponse
impl IntoWasmAbi for ExecutionResponse
source§impl RefFromWasmAbi for ExecutionResponse
impl RefFromWasmAbi for ExecutionResponse
§type Anchor = Ref<'static, ExecutionResponse>
type Anchor = Ref<'static, ExecutionResponse>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl TryFromJsValue for ExecutionResponse
impl TryFromJsValue for ExecutionResponse
source§impl VectorFromWasmAbi for ExecutionResponse
impl VectorFromWasmAbi for ExecutionResponse
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ExecutionResponse]>
source§impl VectorIntoWasmAbi for ExecutionResponse
impl VectorIntoWasmAbi for ExecutionResponse
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ExecutionResponse]>) -> Self::Abi
source§impl WasmDescribeVector for ExecutionResponse
impl WasmDescribeVector for ExecutionResponse
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionResponse
impl Send for ExecutionResponse
impl Sync for ExecutionResponse
impl Unpin for ExecutionResponse
impl UnwindSafe for ExecutionResponse
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.