[][src]Struct actix_http::h1::OneRequest

pub struct OneRequest<T> { /* fields omitted */ }

ServiceFactory implementation for OneRequestService service

Methods

impl<T> OneRequest<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

pub fn new() -> Self[src]

Create new H1SimpleService instance.

Trait Implementations

impl<T: Default> Default for OneRequest<T>[src]

impl<T> ServiceFactory for OneRequest<T> where
    T: AsyncRead + AsyncWrite + Unpin
[src]

type Config = ()

Service factory configuration

type Request = T

Requests handled by the service.

type Response = (Request, Framed<T, Codec>)

Responses given by the service

type Error = ParseError

Errors produced by the service

type InitError = ()

Errors produced while building a service.

type Service = OneRequestService<T>

The Service value created by this factory

type Future = Ready<Result<Self::Service, Self::InitError>>

The future of the Service instance.

Auto Trait Implementations

impl<T> !RefUnwindSafe for OneRequest<T>

impl<T> !Send for OneRequest<T>

impl<T> !Sync for OneRequest<T>

impl<T> Unpin for OneRequest<T> where
    T: Unpin

impl<T> !UnwindSafe for OneRequest<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoServiceFactory<T> for T where
    T: ServiceFactory
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,