Struct diem_sdk::types::transaction::VMValidatorResult
pub struct VMValidatorResult { /* private fields */ }
Expand description
The result of running the transaction through the VM validator.
Implementations§
§impl VMValidatorResult
impl VMValidatorResult
pub fn new( vm_status: Option<StatusCode>, score: u64, governance_role: GovernanceRole ) -> VMValidatorResult
pub fn error(vm_status: StatusCode) -> VMValidatorResult
pub fn status(&self) -> Option<StatusCode>
pub fn score(&self) -> u64
pub fn governance_role(&self) -> GovernanceRole
Trait Implementations§
§impl Clone for VMValidatorResult
impl Clone for VMValidatorResult
§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 more§impl Debug for VMValidatorResult
impl Debug for VMValidatorResult
§impl PartialEq<VMValidatorResult> for VMValidatorResult
impl PartialEq<VMValidatorResult> for VMValidatorResult
§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.