pub struct OfflineExecution<N: Network> { /* private fields */ }
Expand description
Offline Execution of a program
Implementations§
Source§impl<N: Network> OfflineExecution<N>
impl<N: Network> OfflineExecution<N>
Sourcepub fn execution_id(&self) -> Result<Field<N>>
pub fn execution_id(&self) -> Result<Field<N>>
Get the execution id
Sourcepub fn execution_proof(&self) -> Option<&Proof<N>>
pub fn execution_proof(&self) -> Option<&Proof<N>>
Get the execution proof
Sourcepub fn public_outputs(&self) -> Option<Vec<Value<N>>>
pub fn public_outputs(&self) -> Option<Vec<Value<N>>>
Get public outputs
Trait Implementations§
Source§impl<N: Clone + Network> Clone for OfflineExecution<N>
impl<N: Clone + Network> Clone for OfflineExecution<N>
Source§fn clone(&self) -> OfflineExecution<N>
fn clone(&self) -> OfflineExecution<N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<N> !Freeze for OfflineExecution<N>
impl<N> RefUnwindSafe for OfflineExecution<N>where
<N as Network>::StateRoot: RefUnwindSafe + UnwindSafe,
<N as Environment>::Field: RefUnwindSafe + UnwindSafe,
<N as Network>::TransitionID: RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
<N as Environment>::Projective: RefUnwindSafe + UnwindSafe,
<N as Network>::TransactionID: RefUnwindSafe + UnwindSafe,
<N as Network>::BlockHash: RefUnwindSafe + UnwindSafe,
<N as Environment>::Scalar: RefUnwindSafe,
N: RefUnwindSafe + UnwindSafe,
impl<N> Send for OfflineExecution<N>
impl<N> Sync for OfflineExecution<N>
impl<N> Unpin for OfflineExecution<N>where
<N as Network>::StateRoot: Unpin,
<N as Environment>::Field: Unpin,
<N as Network>::TransitionID: Unpin,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin,
<N as Environment>::Projective: Unpin,
<N as Environment>::Scalar: Unpin,
<N as Network>::TransactionID: Unpin,
N: Unpin,
<N as Network>::BlockHash: Unpin,
impl<N> UnwindSafe for OfflineExecution<N>where
<N as Network>::StateRoot: UnwindSafe,
<N as Network>::TransitionID: UnwindSafe,
<N as Environment>::Field: UnwindSafe + RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: UnwindSafe + RefUnwindSafe,
<N as Environment>::Projective: UnwindSafe,
N: UnwindSafe,
<N as Network>::TransactionID: UnwindSafe,
<N as Network>::BlockHash: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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