Skip to main content

ServiceResult

Type Alias ServiceResult 

Source
pub type ServiceResult<B> = Result<Response<B>, ConnectError>;
Expand description

Result type returned by handler trait methods.

B is the body type — typically the owned response message, or any impl Encodable<M>.

Aliased Type§

pub enum ServiceResult<B> {
    Ok(Response<B>),
    Err(ConnectError),
}

Variants§

§1.0.0

Ok(Response<B>)

Contains the success value

§1.0.0

Err(ConnectError)

Contains the error value