[][src]Struct executor_types::StateComputeResult

pub struct StateComputeResult { /* fields omitted */ }

A structure that summarizes the result of the execution needed for consensus to agree on. The execution is responsible for generating the ID of the new state, which is returned in the result.

Not every transaction in the payload succeeds: the returned vector keeps the boolean status of success / failure of the transactions. Note that the specific details of compute_status are opaque to StateMachineReplication, which is going to simply pass the results between StateComputer and TxnManager.


impl StateComputeResult[src]

pub fn new(
    root_hash: HashValue,
    frozen_subtree_roots: Vec<HashValue>,
    num_leaves: u64,
    parent_frozen_subtree_roots: Vec<HashValue>,
    parent_num_leaves: u64,
    epoch_state: Option<EpochState>,
    compute_status: Vec<TransactionStatus>,
    transaction_info_hashes: Vec<HashValue>
) -> Self

impl StateComputeResult[src]

pub fn version(&self) -> Version[src]

pub fn root_hash(&self) -> HashValue[src]

pub fn compute_status(&self) -> &Vec<TransactionStatus>[src]

pub fn epoch_state(&self) -> &Option<EpochState>[src]

pub fn extension_proof(
) -> AccumulatorExtensionProof<TransactionAccumulatorHasher>

pub fn transaction_info_hashes(&self) -> &Vec<HashValue>[src]

pub fn num_leaves(&self) -> u64[src]

pub fn frozen_subtree_roots(&self) -> &Vec<HashValue>[src]

pub fn parent_num_leaves(&self) -> u64[src]

pub fn parent_frozen_subtree_roots(&self) -> &Vec<HashValue>[src]

pub fn has_reconfiguration(&self) -> bool[src]

pub fn signature(&self) -> &Option<Ed25519Signature>[src]

pub fn set_signature(&mut self, sig: Ed25519Signature)[src]

Trait Implementations

impl Clone for StateComputeResult[src]

impl Debug for StateComputeResult[src]

impl<'de> Deserialize<'de> for StateComputeResult[src]

impl Eq for StateComputeResult[src]

impl PartialEq<StateComputeResult> for StateComputeResult[src]

impl Serialize for StateComputeResult[src]

impl StructuralEq for StateComputeResult[src]

impl StructuralPartialEq for StateComputeResult[src]

Auto Trait Implementations

impl RefUnwindSafe for StateComputeResult

impl Send for StateComputeResult

impl Sync for StateComputeResult

impl Unpin for StateComputeResult

impl UnwindSafe for StateComputeResult

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,