Struct actix_service::dev::FnService [−][src]
pub struct FnService<F, Fut, Req, Res, Err> where
F: FnMut(Req) -> Fut,
Fut: Future<Output = Result<Res, Err>>, { /* fields omitted */ }
Trait Implementations
Convert to a Service
type Request = Req
type Request = Req
Requests handled by the service.
type Response = Res
type Response = Res
Responses given by the service.
type Error = Err
type Error = Err
Errors produced by the service.
type Future = Fut
type Future = Fut
The future response value.
Returns Ready
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Auto Trait Implementations
impl<F, Fut, Req, Res, Err> RefUnwindSafe for FnService<F, Fut, Req, Res, Err> where
F: RefUnwindSafe,
Req: RefUnwindSafe,
impl<F, Fut, Req, Res, Err> UnwindSafe for FnService<F, Fut, Req, Res, Err> where
F: UnwindSafe,
Req: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert to a Service