Skip to main content

HandlerResult

Type Alias HandlerResult 

Source
pub type HandlerResult<T, E = Error> = Result<T, E>;
Expand description

Convenience alias for generic handler results. Defaults to Result<T, Error>, but the error type can be overridden.

Aliased Type§

pub enum HandlerResult<T, E = Error> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value