Struct aleo_rust::snarkvm_types::Response
pub struct Response<N>where
N: Network,{ /* private fields */ }
Implementations§
§impl<N> Response<N>where
N: Network,
impl<N> Response<N>where N: Network,
pub fn new(
network_id: &Integer<N, u16>,
program_id: &ProgramID<N>,
function_name: &Identifier<N>,
num_inputs: usize,
tvk: &Field<N>,
tcm: &Field<N>,
outputs: Vec<Value<N>, Global>,
output_types: &[ValueType<N>],
output_operands: &[Option<Register<N>>]
) -> Result<Response<N>, Error>
pub fn new( network_id: &Integer<N, u16>, program_id: &ProgramID<N>, function_name: &Identifier<N>, num_inputs: usize, tvk: &Field<N>, tcm: &Field<N>, outputs: Vec<Value<N>, Global>, output_types: &[ValueType<N>], output_operands: &[Option<Register<N>>] ) -> Result<Response<N>, Error>
Initializes a new response.
pub fn output_ids(&self) -> &[OutputID<N>]
pub fn output_ids(&self) -> &[OutputID<N>]
Returns the output ID for the transition.
Trait Implementations§
§impl<N> PartialEq<Response<N>> for Response<N>where
N: PartialEq<N> + Network,
impl<N> PartialEq<Response<N>> for Response<N>where N: PartialEq<N> + Network,
impl<N> Eq for Response<N>where N: Eq + Network,
impl<N> StructuralEq for Response<N>where N: Network,
impl<N> StructuralPartialEq for Response<N>where N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for Response<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Response<N>
impl<N> Sync for Response<N>
impl<N> Unpin for Response<N>where N: Unpin, <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Response<N>where N: UnwindSafe, <N as Environment>::Field: UnwindSafe, <N as Environment>::Projective: UnwindSafe, <N as Environment>::Scalar: 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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.