Struct diem_types::transaction::VMValidatorResult
source · pub struct VMValidatorResult { /* private fields */ }
Expand description
The result of running the transaction through the VM validator.
Implementations§
source§impl VMValidatorResult
impl VMValidatorResult
pub fn new( vm_status: Option<DiscardedVMStatus>, score: u64, governance_role: GovernanceRole ) -> Self
pub fn error(vm_status: DiscardedVMStatus) -> Self
pub fn status(&self) -> Option<DiscardedVMStatus>
pub fn score(&self) -> u64
pub fn governance_role(&self) -> GovernanceRole
Trait Implementations§
source§impl Clone for VMValidatorResult
impl Clone for VMValidatorResult
source§fn clone(&self) -> VMValidatorResult
fn clone(&self) -> VMValidatorResult
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 moresource§impl Debug for VMValidatorResult
impl Debug for VMValidatorResult
source§impl PartialEq<VMValidatorResult> for VMValidatorResult
impl PartialEq<VMValidatorResult> for VMValidatorResult
source§fn eq(&self, other: &VMValidatorResult) -> bool
fn eq(&self, other: &VMValidatorResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VMValidatorResult
impl StructuralEq for VMValidatorResult
impl StructuralPartialEq for VMValidatorResult
Auto Trait Implementations§
impl RefUnwindSafe for VMValidatorResult
impl Send for VMValidatorResult
impl Sync for VMValidatorResult
impl Unpin for VMValidatorResult
impl UnwindSafe for VMValidatorResult
Blanket Implementations§
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.