Enum casper_types::ExecutionResult
source · pub enum ExecutionResult {
Failure {
effect: ExecutionEffect,
transfers: Vec<TransferAddr>,
cost: U512,
error_message: String,
},
Success {
effect: ExecutionEffect,
transfers: Vec<TransferAddr>,
cost: U512,
},
}
Expand description
The result of executing a single deploy.
Variants§
Failure
Fields
§
effect: ExecutionEffect
The effect of executing the deploy.
§
transfers: Vec<TransferAddr>
A record of Transfers performed while executing the deploy.
The result of a failed execution.
Success
Fields
§
effect: ExecutionEffect
The effect of executing the deploy.
§
transfers: Vec<TransferAddr>
A record of Transfers performed while executing the deploy.
The result of a successful execution.
Trait Implementations§
source§impl Clone for ExecutionResult
impl Clone for ExecutionResult
source§fn clone(&self) -> ExecutionResult
fn clone(&self) -> ExecutionResult
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 ExecutionResult
impl Debug for ExecutionResult
source§impl<'de> Deserialize<'de> for ExecutionResult
impl<'de> Deserialize<'de> for ExecutionResult
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Distribution<ExecutionResult> for Standard
impl Distribution<ExecutionResult> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> ExecutionResult
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> ExecutionResult
Generate a random value of
T
, using rng
as the source of randomness.source§impl FromBytes for ExecutionResult
impl FromBytes for ExecutionResult
source§impl PartialEq for ExecutionResult
impl PartialEq for ExecutionResult
source§fn eq(&self, other: &ExecutionResult) -> bool
fn eq(&self, other: &ExecutionResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExecutionResult
impl Serialize for ExecutionResult
source§impl ToBytes for ExecutionResult
impl ToBytes for ExecutionResult
source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Returns the length of the
Vec<u8>
which would be returned from a successful call to
to_bytes()
or into_bytes()
. The data is not actually serialized, so this call is
relatively cheap.impl Eq for ExecutionResult
impl StructuralEq for ExecutionResult
impl StructuralPartialEq for ExecutionResult
Auto Trait Implementations§
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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