[][src]Struct actix_http::h1::H1Service

pub struct H1Service<T, P, S, B, X = ExpectHandler, U = UpgradeHandler<T>> { /* fields omitted */ }

NewService implementation for HTTP1 transport

Methods

impl<T, P, S, B> H1Service<T, P, S, B> where
    S: NewService<Config = SrvConfig, Request = Request>,
    S::Error: Into<Error>,
    S::InitError: Debug,
    S::Response: Into<Response<B>>,
    B: MessageBody
[src]

pub fn new<F: IntoNewService<S>>(service: F) -> Self[src]

Create new HttpService instance with default config.

pub fn with_config<F: IntoNewService<S>>(cfg: ServiceConfig, service: F) -> Self[src]

Create new HttpService instance with config.

impl<T, P, S, B, X, U> H1Service<T, P, S, B, X, U> where
    S: NewService<Config = SrvConfig, Request = Request>,
    S::Error: Into<Error>,
    S::Response: Into<Response<B>>,
    S::InitError: Debug,
    B: MessageBody
[src]

pub fn expect<X1>(self, expect: X1) -> H1Service<T, P, S, B, X1, U> where
    X1: NewService<Request = Request, Response = Request>,
    X1::Error: Into<Error>,
    X1::InitError: Debug
[src]

pub fn upgrade<U1>(self, upgrade: Option<U1>) -> H1Service<T, P, S, B, X, U1> where
    U1: NewService<Request = (Request, Framed<T, Codec>), Response = ()>,
    U1::Error: Display,
    U1::InitError: Debug
[src]

Trait Implementations

impl<T, P, S, B, X, U> NewService for H1Service<T, P, S, B, X, U> where
    T: IoStream,
    S: NewService<Config = SrvConfig, Request = Request>,
    S::Error: Into<Error>,
    S::Response: Into<Response<B>>,
    S::InitError: Debug,
    B: MessageBody,
    X: NewService<Config = SrvConfig, Request = Request, Response = Request>,
    X::Error: Into<Error>,
    X::InitError: Debug,
    U: NewService<Config = SrvConfig, Request = (Request, Framed<T, Codec>), Response = ()>,
    U::Error: Display,
    U::InitError: Debug
[src]

type Config = SrvConfig

Service factory configuration

type Request = Io<T, P>

Requests handled by the service.

type Response = ()

Responses given by the service

type Error = DispatchError

Errors produced by the service

type InitError = ()

Errors produced while building a service.

type Service = H1ServiceHandler<T, P, S::Service, B, X::Service, U::Service>

The Service value created by this factory

type Future = H1ServiceResponse<T, P, S, B, X, U>

The future of the Service instance.

Auto Trait Implementations

impl<T, P, S, B, X, U> Unpin for H1Service<T, P, S, B, X, U> where
    B: Unpin,
    P: Unpin,
    S: Unpin,
    T: Unpin,
    U: Unpin,
    X: Unpin

impl<T, P, S, B, X = ExpectHandler, U = UpgradeHandler<T>> !Sync for H1Service<T, P, S, B, X, U>

impl<T, P, S, B, X = ExpectHandler, U = UpgradeHandler<T>> !Send for H1Service<T, P, S, B, X, U>

impl<T, P, S, B, X = ExpectHandler, U = UpgradeHandler<T>> !UnwindSafe for H1Service<T, P, S, B, X, U>

impl<T, P, S, B, X = ExpectHandler, U = UpgradeHandler<T>> !RefUnwindSafe for H1Service<T, P, S, B, X, U>

Blanket Implementations

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

impl<T> IntoNewService<T> for T where
    T: NewService
[src]

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