[−][src]Enum casperlabs_engine_core::engine_state::execution_result::ExecutionResult
Variants
An error condition that happened during execution
Fields of Failure
Execution was finished successfully
Fields of Success
effect: ExecutionEffectcost: GasMethods
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 with_cost(self, cost: Gas) -> Self[src]
pub fn with_effect(self, effect: ExecutionEffect) -> Self[src]
pub fn 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
) -> Option<ForcedTransferResult>[src]
&self,
payment_purse_balance: Motes
) -> Option<ForcedTransferResult>
pub fn new_payment_code_error(
error: Error,
max_payment_cost: Motes,
account_main_purse_balance: Motes,
account_main_purse: Key,
rewards_purse: Key
) -> ExecutionResult[src]
error: Error,
max_payment_cost: Motes,
account_main_purse_balance: Motes,
account_main_purse: Key,
rewards_purse: Key
) -> ExecutionResult
Trait Implementations
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
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,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> FromBits<T> for T
fn from_bits(other: T) -> T
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, 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.
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.
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>,