[][src]Struct keclc_framed::SendError

pub struct SendError<T, R, E, C>(_);

Send http/1 error response

Trait Implementations

impl<T, R, E, C> Default for SendError<T, R, E, C> where
    T: AsyncRead + AsyncWrite,
    E: ResponseError
[src]

impl<T, R, E, C> Service for SendError<T, R, E, C> where
    T: AsyncRead + AsyncWrite + Unpin + 'static,
    R: 'static,
    E: ResponseError + 'static, 
[src]

type Request = Result<R, (E, Framed<T, Codec>)>

Requests handled by the service.

type Response = R

Responses given by the service.

type Error = (E, Framed<T, Codec>)

Errors produced by the service.

type Future = Either<Ready<Result<R, (E, Framed<T, Codec>)>>, SendErrorFut<T, R, E>>

The future response value.

impl<T, R, E, C> ServiceFactory for SendError<T, R, E, C> where
    T: AsyncRead + AsyncWrite + Unpin + 'static,
    R: 'static,
    E: ResponseError + 'static, 
[src]

type Config = C

Service factory configuration

type Request = Result<R, (E, Framed<T, Codec>)>

Requests handled by the service.

type Response = R

Responses given by the service

type Error = (E, Framed<T, Codec>)

Errors produced by the service

type InitError = ()

Errors produced while building a service.

type Service = SendError<T, R, E, C>

The Service value created by this factory

type Future = Ready<Result<Self::Service, Self::InitError>>

The future of the Service instance.

Auto Trait Implementations

impl<T, R, E, C> RefUnwindSafe for SendError<T, R, E, C> where
    C: RefUnwindSafe,
    E: RefUnwindSafe,
    R: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, R, E, C> Send for SendError<T, R, E, C> where
    C: Send,
    E: Send,
    R: Send,
    T: Send

impl<T, R, E, C> Sync for SendError<T, R, E, C> where
    C: Sync,
    E: Sync,
    R: Sync,
    T: Sync

impl<T, R, E, C> Unpin for SendError<T, R, E, C> where
    C: Unpin,
    E: Unpin,
    R: Unpin,
    T: Unpin

impl<T, R, E, C> UnwindSafe for SendError<T, R, E, C> where
    C: UnwindSafe,
    E: UnwindSafe,
    R: UnwindSafe,
    T: 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> IntoServiceFactory<T> for T where
    T: ServiceFactory
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,