[][src]Trait whaterror::Termination

pub trait Termination {
    type Ok;
    type Err;
    pub fn into_result(self) -> Result<Self::Ok, Self::Err>;
}

Represents a return value to be handled by whaterror.

Associated Types

type Ok[src]

Type for a successful result.

type Err[src]

Type for an unsuccessful result. This should implement FatalError for at least one type.

Loading content...

Required methods

pub fn into_result(self) -> Result<Self::Ok, Self::Err>[src]

Convert to a Result for handling.

Loading content...

Implementations on Foreign Types

impl<T> Termination for Option<T>[src]

type Ok = T

type Err = NoneError

impl<T, E> Termination for Result<T, E>[src]

type Ok = T

type Err = Error<E>

impl Termination for ()[src]

type Ok = ()

type Err = Infallible

Loading content...

Implementors

Loading content...