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§
Ok(ExecutionResponse<R>)
Contains the success value
Err(ExecutionError<E>)
Contains the error value
Trait Implementations§
Source§impl<R, E> From<ExecutionError<E>> for ExecutionResult<R, E>
impl<R, E> From<ExecutionError<E>> for ExecutionResult<R, E>
Source§fn from(e: ExecutionError<E>) -> Self
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>
impl<R, E> From<ExecutionResponse<R>> for ExecutionResult<R, E>
Source§fn from(response: ExecutionResponse<R>) -> Self
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>
impl<F, FE, T, TE> InnerInto<Result<ExecutionResponse<T>, ExecutionError<TE>>> for ExecutionResult<F, FE>
Source§fn inner_into(self) -> ExecutionResult<T, TE>
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>
impl<R, E> IntoInner<Result<R, E>> for ExecutionResult<R, E>
Source§fn into_inner(self) -> Result<R, E>
fn into_inner(self) -> Result<R, E>
Unwrap the inner type. Read more