Struct actix_net::cloneable::CloneableService [−][src]
pub struct CloneableService<S: Service + 'static> { /* fields omitted */ }
Service that allows to turn non-clone service to a service with Clone
impl
Methods
impl<S: Service + 'static> CloneableService<S>
[src]
impl<S: Service + 'static> CloneableService<S>
Trait Implementations
impl<S: Service + 'static> Clone for CloneableService<S>
[src]
impl<S: Service + 'static> Clone for CloneableService<S>
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<S: Service + 'static> Service for CloneableService<S>
[src]
impl<S: Service + 'static> Service for CloneableService<S>
type Request = S::Request
Requests handled by the service.
type Response = S::Response
Responses given by the service.
type Error = S::Error
Errors produced by the service.
type Future = S::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.
Auto Trait Implementations
impl<S> !Send for CloneableService<S>
impl<S> !Send for CloneableService<S>
impl<S> !Sync for CloneableService<S>
impl<S> !Sync for CloneableService<S>