Enum casper_execution_engine::core::engine_state::execution_result::ExecutionResult [−][src]
Variants
An error condition that happened during execution
Fields of Failure
Execution was finished successfully
Fields of Success
Implementations
impl ExecutionResult[src]
pub fn precondition_failure(error: Error) -> ExecutionResult[src]
Constructs ExecutionResult::Failure that has 0 cost and no effects.
This is the case for failures that we can't (or don't want to) charge
for, like PreprocessingError or InvalidNonce.
pub fn is_success(&self) -> bool[src]
pub fn is_failure(&self) -> bool[src]
pub fn has_precondition_failure(&self) -> bool[src]
pub fn cost(&self) -> Gas[src]
pub fn effect(&self) -> &ExecutionEffect[src]
pub fn transfers(&self) -> &Vec<TransferAddr>[src]
pub fn with_cost(self, cost: Gas) -> Self[src]
pub fn with_effect(self, effect: ExecutionEffect) -> Self[src]
pub fn with_transfers(self, transfers: Vec<TransferAddr>) -> Self[src]
pub fn as_error(&self) -> Option<&Error>[src]
pub fn take_error(self) -> Option<Error>[src]
Consumes ExecutionResult instance and optionally returns error::Error instance for
ExecutionResult::Failure variant.
pub fn check_forced_transfer(
&self,
payment_purse_balance: Motes,
gas_price: u64
) -> Option<ForcedTransferResult>[src]
&self,
payment_purse_balance: Motes,
gas_price: u64
) -> Option<ForcedTransferResult>
pub fn new_payment_code_error(
error: Error,
max_payment_cost: Motes,
account_main_purse_balance: Motes,
gas_cost: Gas,
account_main_purse_balance_key: Key,
proposer_main_purse_balance_key: Key
) -> Result<ExecutionResult, CLValueError>[src]
error: Error,
max_payment_cost: Motes,
account_main_purse_balance: Motes,
gas_cost: Gas,
account_main_purse_balance_key: Key,
proposer_main_purse_balance_key: Key
) -> Result<ExecutionResult, CLValueError>
pub fn take_with_ret<T: FromBytes + CLTyped>(self, ret: T) -> (Option<T>, Self)[src]
pub fn take_without_ret<T: FromBytes + CLTyped>(self) -> (Option<T>, Self)[src]
Trait Implementations
impl Clone for ExecutionResult[src]
fn clone(&self) -> ExecutionResult[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ExecutionResult[src]
impl Default for ExecutionResult[src]
Auto Trait Implementations
impl RefUnwindSafe for ExecutionResult[src]
impl Send for ExecutionResult[src]
impl Sync for ExecutionResult[src]
impl Unpin for ExecutionResult[src]
impl UnwindSafe for ExecutionResult[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DynClone for T where
T: Clone, [src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,