Struct actix_net::framed::IntoFramedService [−][src]
pub struct IntoFramedService<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder, { /* fields omitted */ }
Trait Implementations
impl<T, U, F> Service for IntoFramedService<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder,
[src]
impl<T, U, F> Service for IntoFramedService<T, U, F> where
T: AsyncRead + AsyncWrite,
F: Fn() -> U + Send + Clone + 'static,
U: Encoder + Decoder,
type Request = T
Requests handled by the service.
type Response = Framed<T, U>
Responses given by the service.
type Error = ()
Errors produced by the service.
type Future = FutureResult<Self::Response, Self::Error>
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<T, U, F> Send for IntoFramedService<T, U, F> where
T: Send,
impl<T, U, F> Send for IntoFramedService<T, U, F> where
T: Send,
impl<T, U, F> Sync for IntoFramedService<T, U, F> where
F: Sync,
T: Sync,
impl<T, U, F> Sync for IntoFramedService<T, U, F> where
F: Sync,
T: Sync,