[][src]Struct actix_service::dev::FnService

pub struct FnService<F, Fut, Req, Res, Err> where
    F: FnMut(Req) -> Fut,
    Fut: Future<Output = Result<Res, Err>>, 
{ /* fields omitted */ }

Trait Implementations

impl<F, Fut, Req, Res, Err> Clone for FnService<F, Fut, Req, Res, Err> where
    F: FnMut(Req) -> Fut + Clone,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

impl<F, Fut, Req, Res, Err> IntoService<FnService<F, Fut, Req, Res, Err>> for F where
    F: FnMut(Req) -> Fut,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

impl<F, Fut, Req, Res, Err> Service for FnService<F, Fut, Req, Res, Err> where
    F: FnMut(Req) -> Fut,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

type Request = Req

Requests handled by the service.

type Response = Res

Responses given by the service.

type Error = Err

Errors produced by the service.

type Future = Fut

The future response value.

Auto Trait Implementations

impl<F, Fut, Req, Res, Err> RefUnwindSafe for FnService<F, Fut, Req, Res, Err> where
    F: RefUnwindSafe,
    Req: RefUnwindSafe

impl<F, Fut, Req, Res, Err> Send for FnService<F, Fut, Req, Res, Err> where
    F: Send,
    Req: Send

impl<F, Fut, Req, Res, Err> Sync for FnService<F, Fut, Req, Res, Err> where
    F: Sync,
    Req: Sync

impl<F, Fut, Req, Res, Err> Unpin for FnService<F, Fut, Req, Res, Err> where
    F: Unpin,
    Req: Unpin

impl<F, Fut, Req, Res, Err> UnwindSafe for FnService<F, Fut, Req, Res, Err> where
    F: UnwindSafe,
    Req: 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> IntoService<T> for T where
    T: Service
[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.