Struct snarkvm_circuit_program::Response
source · pub struct Response<A: Aleo> { /* private fields */ }
Implementations§
source§impl<A: Aleo> Response<A>
impl<A: Aleo> Response<A>
sourcepub fn from_outputs(
network_id: &U16<A>,
program_id: &ProgramID<A>,
function_name: &Identifier<A>,
num_inputs: usize,
tvk: &Field<A>,
tcm: &Field<A>,
outputs: Vec<Value<A>>,
output_types: &[ValueType<A::Network>],
output_registers: &[Option<Register<A::Network>>]
) -> Self
pub fn from_outputs( network_id: &U16<A>, program_id: &ProgramID<A>, function_name: &Identifier<A>, num_inputs: usize, tvk: &Field<A>, tcm: &Field<A>, outputs: Vec<Value<A>>, output_types: &[ValueType<A::Network>], output_registers: &[Option<Register<A::Network>>] ) -> Self
Initializes a response, given the number of inputs, caller, tvk, tcm, outputs, output types, and output registers.
source§impl<A: Aleo> Response<A>
impl<A: Aleo> Response<A>
sourcepub fn process_outputs_from_callback(
network_id: &U16<A>,
program_id: &ProgramID<A>,
function_name: &Identifier<A>,
num_inputs: usize,
tvk: &Field<A>,
tcm: &Field<A>,
outputs: Vec<Value<A::Network>>,
output_types: &[ValueType<A::Network>]
) -> Vec<Value<A>>
pub fn process_outputs_from_callback( network_id: &U16<A>, program_id: &ProgramID<A>, function_name: &Identifier<A>, num_inputs: usize, tvk: &Field<A>, tcm: &Field<A>, outputs: Vec<Value<A::Network>>, output_types: &[ValueType<A::Network>] ) -> Vec<Value<A>>
Returns the injected circuit outputs, given the number of inputs, caller, tvk, tcm, outputs, and output types.
Trait Implementations§
source§impl<A: Aleo> Eject for Response<A>
impl<A: Aleo> Eject for Response<A>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the response.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects the response as a primitive.
type Primitive = Response<<A as Environment>::Network>
§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true
if the circuit is a constant.§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true
if the circuit is a private.Auto Trait Implementations§
impl<A> RefUnwindSafe for Response<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
impl<A> !Send for Response<A>
impl<A> !Sync for Response<A>
impl<A> Unpin for Response<A>where <A as Environment>::BaseField: Unpin,
impl<A> UnwindSafe for Response<A>where <A as Environment>::BaseField: UnwindSafe + RefUnwindSafe,
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