[][src]Struct kayrx::service::dev::AndThenApplyFnFactory

pub struct AndThenApplyFnFactory<A, B, F, Fut, Res, Err> { /* fields omitted */ }

AndThenApplyFn service factory

Trait Implementations

impl<A, B, F, Fut, Res, Err> Clone for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
    A: Clone,
    B: Clone,
    F: Clone
[src]

impl<A, B, F, Fut, Res, Err> ServiceFactory for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
    A: ServiceFactory,
    A::Config: Clone,
    B: ServiceFactory<Config = A::Config, InitError = A::InitError>,
    F: FnMut(A::Response, &mut B::Service) -> Fut + Clone,
    Fut: Future<Output = Result<Res, Err>>,
    Err: From<A::Error> + From<B::Error>, 
[src]

type Request = A::Request

Requests handled by the service.

type Response = Res

Responses given by the service

type Error = Err

Errors produced by the service

type Service = AndThenApplyFn<A::Service, B::Service, F, Fut, Res, Err>

The Service value created by this factory

type Config = A::Config

Service factory configuration

type InitError = A::InitError

Errors produced while building a service.

type Future = AndThenApplyFnFactoryResponse<A, B, F, Fut, Res, Err>

The future of the Service instance.

Auto Trait Implementations

impl<A, B, F, Fut, Res, Err> RefUnwindSafe for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    Err: RefUnwindSafe,
    F: RefUnwindSafe,
    Fut: RefUnwindSafe,
    Res: RefUnwindSafe

impl<A, B, F, Fut, Res, Err> Send for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
    A: Send,
    B: Send,
    Err: Send,
    F: Send,
    Fut: Send,
    Res: Send

impl<A, B, F, Fut, Res, Err> Sync for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
    A: Sync,
    B: Sync,
    Err: Sync,
    F: Sync,
    Fut: Sync,
    Res: Sync

impl<A, B, F, Fut, Res, Err> Unpin for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
    A: Unpin,
    B: Unpin,
    Err: Unpin,
    F: Unpin,
    Fut: Unpin,
    Res: Unpin

impl<A, B, F, Fut, Res, Err> UnwindSafe for AndThenApplyFnFactory<A, B, F, Fut, Res, Err> where
    A: UnwindSafe,
    B: UnwindSafe,
    Err: UnwindSafe,
    F: UnwindSafe,
    Fut: UnwindSafe,
    Res: 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> 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.