Struct actix_net::stream::TakeItem [−][src]
pub struct TakeItem<T> { /* fields omitted */ }NewService that implements, read one item from the stream.
Methods
impl<T> TakeItem<T>[src]
impl<T> TakeItem<T>Trait Implementations
impl<T: Stream> NewService for TakeItem<T>[src]
impl<T: Stream> NewService for TakeItem<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 InitError = ()
Errors produced while building a service.
type Service = TakeItemService<T>
The Service value created by this factory
type Future = FutureResult<Self::Service, Self::InitError>
The future of the Service instance.
fn new_service(&self) -> Self::Future[src]
fn new_service(&self) -> Self::FutureCreate and return a new service value asynchronously.