[][src]Struct actix_service::ServiceFn

pub struct ServiceFn<F, Req, Out> where
    F: FnMut(Req) -> Out,
    Out: IntoFuture
{ /* fields omitted */ }

Trait Implementations

impl<F, Req, Out> Clone for ServiceFn<F, Req, Out> where
    F: FnMut(Req) -> Out + Clone,
    Out: IntoFuture
[src]

impl<F, Req, Out> IntoService<ServiceFn<F, Req, Out>> for F where
    F: FnMut(Req) -> Out,
    Out: IntoFuture
[src]

impl<F, Req, Out> Service for ServiceFn<F, Req, Out> where
    F: FnMut(Req) -> Out,
    Out: IntoFuture
[src]

type Request = Req

Requests handled by the service.

type Response = Out::Item

Responses given by the service.

type Error = Out::Error

Errors produced by the service.

type Future = Out::Future

The future response value.

Auto Trait Implementations

impl<F, Req, Out> RefUnwindSafe for ServiceFn<F, Req, Out> where
    F: RefUnwindSafe,
    Req: RefUnwindSafe

impl<F, Req, Out> Send for ServiceFn<F, Req, Out> where
    F: Send,
    Req: Send

impl<F, Req, Out> Sync for ServiceFn<F, Req, Out> where
    F: Sync,
    Req: Sync

impl<F, Req, Out> Unpin for ServiceFn<F, Req, Out> where
    F: Unpin,
    Req: Unpin

impl<F, Req, Out> UnwindSafe for ServiceFn<F, Req, Out> 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> ServiceExt for T where
    T: Service + ?Sized
[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.