Struct actix_net::service::FnService [−][src]
pub struct FnService<F, Req, Resp, E, Fut> where
F: Fn(Req) -> Fut,
Fut: IntoFuture<Item = Resp, Error = E>, { /* fields omitted */ }Methods
impl<F, Req, Resp, E, Fut> FnService<F, Req, Resp, E, Fut> where
F: Fn(Req) -> Fut,
Fut: IntoFuture<Item = Resp, Error = E>, [src]
impl<F, Req, Resp, E, Fut> FnService<F, Req, Resp, E, Fut> where
F: Fn(Req) -> Fut,
Fut: IntoFuture<Item = Resp, Error = E>, Trait Implementations
impl<F, Req, Resp, E, Fut> Clone for FnService<F, Req, Resp, E, Fut> where
F: Fn(Req) -> Fut + Clone,
Fut: IntoFuture<Item = Resp, Error = E>, [src]
impl<F, Req, Resp, E, Fut> Clone for FnService<F, Req, Resp, E, Fut> where
F: Fn(Req) -> Fut + Clone,
Fut: IntoFuture<Item = Resp, Error = E>, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<F, Req, Resp, E, Fut> Service for FnService<F, Req, Resp, E, Fut> where
F: Fn(Req) -> Fut,
Fut: IntoFuture<Item = Resp, Error = E>, [src]
impl<F, Req, Resp, E, Fut> Service for FnService<F, Req, Resp, E, Fut> where
F: Fn(Req) -> Fut,
Fut: IntoFuture<Item = Resp, Error = E>, type Request = Req
Requests handled by the service.
type Response = Resp
Responses given by the service.
type Error = E
Errors produced by the service.
type Future = Fut::Future
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>[src]
fn poll_ready(&mut self) -> Poll<(), Self::Error>Returns Ready when the service is able to process requests. Read more
fn call(&mut self, req: Req) -> Self::Future[src]
fn call(&mut self, req: Req) -> Self::FutureProcess the request and return the response asynchronously. Read more
fn ready(self) -> Ready<Self>[src]
fn ready(self) -> Ready<Self>A future yielding the service when it is ready to accept a request.
impl<F, Req, Resp, Err, Fut> IntoService<FnService<F, Req, Resp, Err, Fut>> for F where
F: Fn(Req) -> Fut + 'static,
Fut: IntoFuture<Item = Resp, Error = Err>, [src]
impl<F, Req, Resp, Err, Fut> IntoService<FnService<F, Req, Resp, Err, Fut>> for F where
F: Fn(Req) -> Fut + 'static,
Fut: IntoFuture<Item = Resp, Error = Err>, fn into_service(self) -> FnService<F, Req, Resp, Err, Fut>[src]
fn into_service(self) -> FnService<F, Req, Resp, Err, Fut>Convert to a Service