pub fn as_error(&self) -> Option<&error::Error> {
        match self {
            ExecutionResult::Failure { error, .. } => Some(error),
            ExecutionResult::Success { .. } => None,
        }
    }
/// Returns error value, if possible.
///
/// Returns a reference to a wrapped [`error::Error`] instance if the object is a failure
/// variant.
Returns error value, if possible.
Returns a reference to a wrapped [`error::Error`] instance if the object is a failure
variant.
Returns error value if possible . Returns a reference to a wrapped [ ` error :: Error ` ] instance if the object is a failure variant .
pub fn as_error(&self) -> Option<&error::Error> {
        match self {
            ExecutionResult::Failure { error, .. } => Some(error),
            ExecutionResult::Success { .. } => None,
        }
    }
pub fn as_error ( & self ) -> Option < & error :: Error > { match self { ExecutionResult :: Failure { error , .. } => Some ( error ) , ExecutionResult :: Success { .. } => None , } }
Returns error value, if possible.
Returns error value if possible .
&self
&self