[][src]Struct actix_service::dev::ApplyConfigServiceFactory

pub struct ApplyConfigServiceFactory<F, C, T, R, S> where
    F: FnMut(C, &mut T::Service) -> R,
    T: ServiceFactory<Config = ()>,
    R: Future<Output = Result<S, T::InitError>>,
    S: Service
{ /* fields omitted */ }

Convert Fn(&Config) -> Future<Service> fn to NewService

Trait Implementations

impl<F, C, T, R, S> Clone for ApplyConfigServiceFactory<F, C, T, R, S> where
    F: FnMut(C, &mut T::Service) -> R,
    T: ServiceFactory<Config = ()>,
    R: Future<Output = Result<S, T::InitError>>,
    S: Service
[src]

impl<F, C, T, R, S> ServiceFactory for ApplyConfigServiceFactory<F, C, T, R, S> where
    F: FnMut(C, &mut T::Service) -> R,
    T: ServiceFactory<Config = ()>,
    T::InitError: From<T::Error>,
    R: Future<Output = Result<S, T::InitError>>,
    S: Service
[src]

type Config = C

Service factory configuration

type Request = S::Request

Requests handled by the service.

type Response = S::Response

Responses given by the service

type Error = S::Error

Errors produced by the service

type Service = S

The Service value created by this factory

type InitError = T::InitError

Errors produced while building a service.

type Future = ApplyConfigServiceFactoryResponse<F, C, T, R, S>

The future of the Service instance.

Auto Trait Implementations

impl<F, C, T, R, S> !RefUnwindSafe for ApplyConfigServiceFactory<F, C, T, R, S>

impl<F, C, T, R, S> !Send for ApplyConfigServiceFactory<F, C, T, R, S>

impl<F, C, T, R, S> !Sync for ApplyConfigServiceFactory<F, C, T, R, S>

impl<F, C, T, R, S> Unpin for ApplyConfigServiceFactory<F, C, T, R, S> where
    C: Unpin,
    R: Unpin,
    S: Unpin

impl<F, C, T, R, S> !UnwindSafe for ApplyConfigServiceFactory<F, C, T, R, S>

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> 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.