pub struct Response<N: Network> { /* private fields */ }
Implementations§
Source§impl<N: Network> Response<N>
impl<N: Network> Response<N>
Sourcepub fn new(
network_id: &U16<N>,
program_id: &ProgramID<N>,
function_name: &Identifier<N>,
num_inputs: usize,
tvk: &Field<N>,
tcm: &Field<N>,
outputs: Vec<Value<N>>,
output_types: &[ValueType<N>],
output_operands: &[Option<Register<N>>],
) -> Result<Self>
pub fn new( network_id: &U16<N>, program_id: &ProgramID<N>, function_name: &Identifier<N>, num_inputs: usize, tvk: &Field<N>, tcm: &Field<N>, outputs: Vec<Value<N>>, output_types: &[ValueType<N>], output_operands: &[Option<Register<N>>], ) -> Result<Self>
Initializes a new response.
Sourcepub fn output_ids(&self) -> &[OutputID<N>]
pub fn output_ids(&self) -> &[OutputID<N>]
Returns the output ID for the transition.
Trait Implementations§
impl<N: Eq + Network> Eq for Response<N>
impl<N: Network> StructuralPartialEq for Response<N>
Auto Trait Implementations§
impl<N> Freeze for Response<N>
impl<N> RefUnwindSafe for Response<N>where
<N as Environment>::Field: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Response<N>
impl<N> Sync for Response<N>
impl<N> Unpin for Response<N>where
<N as Environment>::Field: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
N: Unpin,
impl<N> UnwindSafe for Response<N>where
<N as Environment>::Field: UnwindSafe,
<N as Environment>::Projective: UnwindSafe,
<N as Environment>::Scalar: UnwindSafe,
N: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more