Struct actix_net::service::AndThenNewService [−][src]
pub struct AndThenNewService<A, B> { /* fields omitted */ }
AndThenNewService
new service combinator
Methods
impl<A, B> AndThenNewService<A, B> where
A: NewService,
B: NewService,
[src]
impl<A, B> AndThenNewService<A, B> where
A: NewService,
B: NewService,
pub fn new<F: IntoNewService<B>>(a: A, f: F) -> Self
[src]
pub fn new<F: IntoNewService<B>>(a: A, f: F) -> Self
Create new AndThen
combinator
Trait Implementations
impl<A, B> NewService for AndThenNewService<A, B> where
A: NewService,
B: NewService<Request = A::Response, Error = A::Error, InitError = A::InitError>,
[src]
impl<A, B> NewService for AndThenNewService<A, B> where
A: NewService,
B: NewService<Request = A::Response, Error = A::Error, InitError = A::InitError>,
type Request = A::Request
Requests handled by the service
type Response = B::Response
Responses given by the service
type Error = A::Error
Errors produced by the service
type Service = AndThen<A::Service, B::Service>
The Service
value created by this factory
type InitError = A::InitError
Errors produced while building a service.
type Future = AndThenNewServiceFuture<A, B>
The future of the Service
instance.
fn new_service(&self) -> Self::Future
[src]
fn new_service(&self) -> Self::Future
Create and return a new service value asynchronously.
impl<A, B> Clone for AndThenNewService<A, B> where
A: NewService + Clone,
B: NewService<Request = A::Response, Error = A::Error, InitError = A::InitError> + Clone,
[src]
impl<A, B> Clone for AndThenNewService<A, B> where
A: NewService + Clone,
B: NewService<Request = A::Response, Error = A::Error, InitError = A::InitError> + Clone,
Auto Trait Implementations
impl<A, B> Send for AndThenNewService<A, B> where
A: Send,
B: Send,
impl<A, B> Send for AndThenNewService<A, B> where
A: Send,
B: Send,
impl<A, B> Sync for AndThenNewService<A, B> where
A: Sync,
B: Sync,
impl<A, B> Sync for AndThenNewService<A, B> where
A: Sync,
B: Sync,