Enum parables_testing::evm::Outcome  [−][src]
pub enum Outcome<T> {
    Ok(T),
    Reverted {
        error_info: ErrorInfo,
    },
    Errored {
        error_info: ErrorInfo,
    },
    Status {
        status: u8,
    },
}The outcome of a transaction.
Even when transactions fail, they might be using gas.
Variants
Ok(T)RevertedFields of Reverted
                           error_info: ErrorInfo | 
ErroredFields of Errored
                           error_info: ErrorInfo | 
StatusFields of Status
                           status: u8 | 
Methods
impl<T> Outcome<T>[src] 
impl<T> Outcome<T>pub fn is_ok(&self) -> bool[src] 
pub fn is_ok(&self) -> boolCheck if the outcome is OK.
pub fn is_err(&self) -> bool[src] 
pub fn is_err(&self) -> boolCheck if outcome is errored.
pub fn is_reverted(&self) -> bool[src] 
pub fn is_reverted(&self) -> boolCheck if the outcome is reverted.
Trait Implementations
impl<T: Debug> Debug for Outcome<T>[src] 
impl<T: Debug> Debug for Outcome<T>fn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: Clone> Clone for Outcome<T>[src] 
impl<T: Clone> Clone for Outcome<T>fn clone(&self) -> Outcome<T>[src] 
fn clone(&self) -> Outcome<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T: PartialEq> PartialEq for Outcome<T>[src] 
impl<T: PartialEq> PartialEq for Outcome<T>fn eq(&self, other: &Outcome<T>) -> bool[src] 
fn eq(&self, other: &Outcome<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Outcome<T>) -> bool[src] 
fn ne(&self, other: &Outcome<T>) -> boolThis method tests for !=.
impl<T: Eq> Eq for Outcome<T>[src] 
impl<T: Eq> Eq for Outcome<T>