ExecutionResult

Type Alias ExecutionResult 

Source
pub type ExecutionResult<R, E> = Result<ExecutionResponse<R>, ExecutionError<E>>;
Expand description

Result of request execution

Aliased Type§

pub enum ExecutionResult<R, E> {
    Ok(ExecutionResponse<R>),
    Err(ExecutionError<E>),
}

Variants§

§1.0.0

Ok(ExecutionResponse<R>)

Contains the success value

§1.0.0

Err(ExecutionError<E>)

Contains the error value

Trait Implementations§

Source§

impl<R, E> From<ExecutionError<E>> for ExecutionResult<R, E>

Source§

fn from(e: ExecutionError<E>) -> Self

Converts to this type from the input type.
Source§

impl<R, E> From<ExecutionResponse<R>> for ExecutionResult<R, E>

Source§

fn from(response: ExecutionResponse<R>) -> Self

Converts to this type from the input type.
Source§

impl<F, FE, T, TE> InnerInto<Result<ExecutionResponse<T>, ExecutionError<TE>>> for ExecutionResult<F, FE>
where F: Into<T>, FE: Into<TE>,

Source§

fn inner_into(self) -> ExecutionResult<T, TE>

Convert inner type without losing additional context information of the wrapper.
Source§

impl<R, E> IntoInner<Result<R, E>> for ExecutionResult<R, E>

Source§

fn into_inner(self) -> Result<R, E>

Unwrap the inner type. Read more