pub struct ExecutionState<Hash>{
pub state: BTreeMap<[u8; 32], Vec<u8>>,
pub side_effects: Vec<Vec<SideEffect<[u8; 32], u64, u128>>>,
pub steps_cnt: (u32, u32),
pub execution_id: Hash,
}Expand description
The local state returned by the circuit for an execution
Fields§
§state: BTreeMap<[u8; 32], Vec<u8>>An abstract state mapped by 32 bit hash and a vector of bytes
side_effects: Vec<Vec<SideEffect<[u8; 32], u64, u128>>>A multi-dimensional vector of side effects, indexed by step
steps_cnt: (u32, u32)Current step and the length of steps
execution_id: HashThe id for this execution
Trait Implementations§
Source§impl<Hash> Clone for ExecutionState<Hash>
impl<Hash> Clone for ExecutionState<Hash>
Source§fn clone(&self) -> ExecutionState<Hash>
fn clone(&self) -> ExecutionState<Hash>
Returns a duplicate 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 moreSource§impl<Hash> Debug for ExecutionState<Hash>
impl<Hash> Debug for ExecutionState<Hash>
Source§impl<Hash> Decode for ExecutionState<Hash>
impl<Hash> Decode for ExecutionState<Hash>
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl<Hash> Default for ExecutionState<Hash>
impl<Hash> Default for ExecutionState<Hash>
Source§fn default() -> ExecutionState<Hash>
fn default() -> ExecutionState<Hash>
Returns the “default value” for a type. Read more
Source§impl<Hash> Encode for ExecutionState<Hash>
impl<Hash> Encode for ExecutionState<Hash>
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl<Hash> GetExecutionId<Hash> for ExecutionState<Hash>
impl<Hash> GetExecutionId<Hash> for ExecutionState<Hash>
fn get_execution_id(&self) -> &Hash
Source§impl<Hash> GetSteps for ExecutionState<Hash>
impl<Hash> GetSteps for ExecutionState<Hash>
Source§impl<Hash> PartialEq for ExecutionState<Hash>
impl<Hash> PartialEq for ExecutionState<Hash>
impl<Hash> EncodeLike for ExecutionState<Hash>
impl<Hash> Eq for ExecutionState<Hash>
impl<Hash> Getters<Hash> for ExecutionState<Hash>
impl<Hash> StructuralPartialEq for ExecutionState<Hash>
Auto Trait Implementations§
impl<Hash> Freeze for ExecutionState<Hash>where
Hash: Freeze,
impl<Hash> RefUnwindSafe for ExecutionState<Hash>where
Hash: RefUnwindSafe,
impl<Hash> Send for ExecutionState<Hash>where
Hash: Send,
impl<Hash> Sync for ExecutionState<Hash>where
Hash: Sync,
impl<Hash> Unpin for ExecutionState<Hash>where
Hash: Unpin,
impl<Hash> UnwindSafe for ExecutionState<Hash>where
Hash: 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