Trait burger::TryService

source ·
pub trait TryService<Request>: Service<Request, Response = Result<Self::Ok, Self::Error>> {
    type Ok;
    type Error;
}
Expand description

A fallible Service.

Required Associated Types§

source

type Ok

The Result::Ok variant of the Service::Response.

source

type Error

The Result::Err variant of the Service::Response.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Request, Ok, Error, S> TryService<Request> for S
where S: Service<Request, Response = Result<Ok, Error>>,

§

type Ok = Ok

§

type Error = Error