Struct actix_net::service::Apply [−][src]
pub struct Apply<T, F, R, Req> { /* fields omitted */ }
Apply
service combinator
Methods
impl<T, F, R, Req> Apply<T, F, R, Req> where
T: Service,
T::Error: Into<<R::Future as Future>::Error>,
F: Fn(Req, &mut T) -> R,
R: IntoFuture,
[src]
impl<T, F, R, Req> Apply<T, F, R, Req> where
T: Service,
T::Error: Into<<R::Future as Future>::Error>,
F: Fn(Req, &mut T) -> R,
R: IntoFuture,
pub fn new<I: IntoService<T>>(service: I, f: F) -> Self
[src]
pub fn new<I: IntoService<T>>(service: I, f: F) -> Self
Create new Apply
combinator
Trait Implementations
impl<T, F, R, Req> Clone for Apply<T, F, R, Req> where
T: Service + Clone,
T::Error: Into<<R::Future as Future>::Error>,
F: Fn(Req, &mut T) -> R + Clone,
R: IntoFuture,
[src]
impl<T, F, R, Req> Clone for Apply<T, F, R, Req> where
T: Service + Clone,
T::Error: Into<<R::Future as Future>::Error>,
F: Fn(Req, &mut T) -> R + Clone,
R: IntoFuture,
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns 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<T, F, R, Req> Service for Apply<T, F, R, Req> where
T: Service,
T::Error: Into<<R::Future as Future>::Error>,
F: Fn(Req, &mut T) -> R,
R: IntoFuture,
[src]
impl<T, F, R, Req> Service for Apply<T, F, R, Req> where
T: Service,
T::Error: Into<<R::Future as Future>::Error>,
F: Fn(Req, &mut T) -> R,
R: IntoFuture,
type Request = Req
Requests handled by the service.
type Response = <R::Future as Future>::Item
Responses given by the service.
type Error = <R::Future as Future>::Error
Errors produced by the service.
type Future = R::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: Self::Request) -> Self::Future
[src]
fn call(&mut self, req: Self::Request) -> Self::Future
Process 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.