[][src]Struct actix_service::ApplyNewService

pub struct ApplyNewService<T, F, In, Out> where
    T: NewService
{ /* fields omitted */ }

ApplyNewService new service combinator

Trait Implementations

impl<T, F, In, Out> Clone for ApplyNewService<T, F, In, Out> where
    T: NewService + Clone,
    F: FnMut(In, &mut T::Service) -> Out + Clone,
    Out: IntoFuture
[src]

impl<T, F, In, Out> NewService for ApplyNewService<T, F, In, Out> where
    T: NewService,
    F: FnMut(In, &mut T::Service) -> Out + Clone,
    Out: IntoFuture,
    Out::Error: From<T::Error>, 
[src]

type Request = In

Requests handled by the service.

type Response = Out::Item

Responses given by the service

type Error = Out::Error

Errors produced by the service

type Config = T::Config

Service factory configuration

type Service = Apply<T::Service, F, In, Out>

The Service value created by this factory

type InitError = T::InitError

Errors produced while building a service.

type Future = ApplyNewServiceFuture<T, F, In, Out>

The future of the Service instance.

Auto Trait Implementations

impl<T, F, In, Out> RefUnwindSafe for ApplyNewService<T, F, In, Out> where
    F: RefUnwindSafe,
    In: RefUnwindSafe,
    Out: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, F, In, Out> Send for ApplyNewService<T, F, In, Out> where
    F: Send,
    In: Send,
    Out: Send,
    T: Send

impl<T, F, In, Out> Sync for ApplyNewService<T, F, In, Out> where
    F: Sync,
    In: Sync,
    Out: Sync,
    T: Sync

impl<T, F, In, Out> Unpin for ApplyNewService<T, F, In, Out> where
    F: Unpin,
    In: Unpin,
    Out: Unpin,
    T: Unpin

impl<T, F, In, Out> UnwindSafe for ApplyNewService<T, F, In, Out> where
    F: UnwindSafe,
    In: UnwindSafe,
    Out: UnwindSafe,
    T: UnwindSafe

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> IntoNewService<T> for T where
    T: NewService
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.