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

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>, Req> for F where
    F: Fn(Req) -> Fut,
    Fut: Future<Output = Result<Res, Err>>, 
[src]

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

type Response = Res

Responses given by the service.

type Error = Err

Errors produced by the service when polling readiness or executing call.

type Future = Fut

The future response value.

Auto Trait Implementations

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

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

impl<F, Fut, Req, Res, Err> Unpin for FnService<F, Fut, Req, Res, Err> where
    F: Unpin,
    Req: Unpin
[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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, Req> IntoService<S, Req> for S where
    S: Service<Req>, 
[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.