Type Alias gotham::handler::HandlerResult

source ·
pub type HandlerResult = Result<(State, Response<Body>), (State, HandlerError)>;
Expand description

A type alias for the results returned by async fns that can be passed to to_async.

Aliased Type§

enum HandlerResult {
    Ok((State, Response<Body>)),
    Err((State, HandlerError)),
}

Variants§

§1.0.0

Ok((State, Response<Body>))

Contains the success value

§1.0.0

Err((State, HandlerError))

Contains the error value