Struct actix_net::stream::TakeItemService [−][src]
pub struct TakeItemService<T> { /* fields omitted */ }NewService that implements, read one request from framed object feature.
Trait Implementations
impl<T: Stream> Service for TakeItemService<T>[src]
impl<T: Stream> Service for TakeItemService<T>type Request = T
Requests handled by the service.
type Response = (Option<T::Item>, T)
Responses given by the service.
type Error = T::Error
Errors produced by the service.
type Future = TakeItemServiceResponse<T>
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::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.
Auto Trait Implementations
impl<T> Send for TakeItemService<T> where
T: Send,
impl<T> Send for TakeItemService<T> where
T: Send, impl<T> Sync for TakeItemService<T> where
T: Sync,
impl<T> Sync for TakeItemService<T> where
T: Sync,