Type Alias bonsaidb::server::api::HandlerResult

source ·
pub type HandlerResult<Api> = Result<<Api as Api>::Response, HandlerError<<Api as Api>::Error>>;
Expand description

The return type from a Handler’s handle() function.

Aliased Type§

enum HandlerResult<Api> {
    Ok(<Api as Api>::Response),
    Err(HandlerError<<Api as Api>::Error>),
}

Variants§

§1.0.0

Ok(<Api as Api>::Response)

Contains the success value

§1.0.0

Err(HandlerError<<Api as Api>::Error>)

Contains the error value