Type Alias gotham::handler::SimpleHandlerResult

source ·
pub type SimpleHandlerResult = Result<Response<Body>, HandlerError>;
Expand description

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

Aliased Type§

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

Variants§

§1.0.0

Ok(Response<Body>)

Contains the success value

§1.0.0

Err(HandlerError)

Contains the error value