PartialResult

Type Alias PartialResult 

Source
pub type PartialResult<T, F, E> = Result<PartialSuccess<T, F>, E>;
Expand description

A type that represents a result, where successful results can contain a failure.

Aliased Type§

pub enum PartialResult<T, F, E> {
    Ok(PartialSuccess<T, F>),
    Err(E),
}

Variants§

§1.0.0

Ok(PartialSuccess<T, F>)

Contains the success value

§1.0.0

Err(E)

Contains the error value

Trait Implementations§

Source§

impl<T, F, E> PartialResultExt<T, F, E> for PartialResult<T, F, E>

Source§

fn partial_success(value: T, failure: F) -> Self

Creates a new PartialResult<T, F, E> with the given value and failure.