[][src]Struct ntex::service::dev::FnServiceNoConfig

pub struct FnServiceNoConfig<F, C, S, R, E> where
    F: Fn() -> R,
    R: Future<Output = Result<S, E>>,
    S: Service
{ /* fields omitted */ }

Converter for Fn() -> Future<Service> fn

Trait Implementations

impl<F, C, S, R, E> Clone for FnServiceNoConfig<F, C, S, R, E> where
    F: Fn() -> R + Clone,
    R: Future<Output = Result<S, E>>,
    S: Service
[src]

impl<F, C, S, R, E> IntoServiceFactory<FnServiceNoConfig<F, C, S, R, E>> for F where
    F: Fn() -> R,
    R: Future<Output = Result<S, E>>,
    S: Service
[src]

impl<F, C, S, R, E> ServiceFactory for FnServiceNoConfig<F, C, S, R, E> where
    F: Fn() -> R,
    R: Future<Output = Result<S, E>>,
    S: Service
[src]

type Request = <S as Service>::Request

Requests handled by the service.

type Response = <S as Service>::Response

Responses given by the service

type Error = <S as Service>::Error

Errors produced by the service

type Service = S

The Service value created by this factory

type Config = C

Service factory configuration

type InitError = E

Errors produced while building a service.

type Future = R

The future of the ServiceFactory instance.

Auto Trait Implementations

impl<F, C, S, R, E> RefUnwindSafe for FnServiceNoConfig<F, C, S, R, E> where
    C: RefUnwindSafe,
    F: RefUnwindSafe
[src]

impl<F, C, S, R, E> Send for FnServiceNoConfig<F, C, S, R, E> where
    C: Send,
    F: Send
[src]

impl<F, C, S, R, E> Sync for FnServiceNoConfig<F, C, S, R, E> where
    C: Sync,
    F: Sync
[src]

impl<F, C, S, R, E> Unpin for FnServiceNoConfig<F, C, S, R, E> where
    C: Unpin,
    F: Unpin
[src]

impl<F, C, S, R, E> UnwindSafe for FnServiceNoConfig<F, C, S, R, E> where
    C: UnwindSafe,
    F: UnwindSafe
[src]

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> Instrument for T[src]

impl<T> Instrument 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> Same<T> for T

type Output = T

Should always be Self

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.

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