[][src]Struct actix_service::blank::BlankNewService

pub struct BlankNewService<R, E1, E2 = ()> { /* fields omitted */ }

Empty service factory

Methods

impl<R, E1, E2> BlankNewService<R, E1, E2>[src]

pub fn new() -> BlankNewService<R, E1, E2>[src]

impl<R, E1> BlankNewService<R, E1, ()>[src]

pub fn new_unit() -> BlankNewService<R, E1, ()>[src]

Trait Implementations

impl<R, E1, E2> Default for BlankNewService<R, E1, E2>[src]

impl<R, E1, E2> NewService for BlankNewService<R, E1, E2>[src]

type Request = R

Requests handled by the service.

type Response = R

Responses given by the service

type Error = E1

Errors produced by the service

type Config = ()

Service factory configuration

type Service = Blank<R, E1>

The Service value created by this factory

type InitError = E2

Errors produced while building a service.

type Future = FutureResult<Self::Service, Self::InitError>

The future of the Service instance.

Auto Trait Implementations

impl<R, E1, E2> RefUnwindSafe for BlankNewService<R, E1, E2> where
    E1: RefUnwindSafe,
    E2: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, E1, E2> Send for BlankNewService<R, E1, E2> where
    E1: Send,
    E2: Send,
    R: Send

impl<R, E1, E2> Sync for BlankNewService<R, E1, E2> where
    E1: Sync,
    E2: Sync,
    R: Sync

impl<R, E1, E2> Unpin for BlankNewService<R, E1, E2> where
    E1: Unpin,
    E2: Unpin,
    R: Unpin

impl<R, E1, E2> UnwindSafe for BlankNewService<R, E1, E2> where
    E1: UnwindSafe,
    E2: UnwindSafe,
    R: 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> IntoNewService<T> for T where
    T: NewService
[src]

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.