[][src]Enum tower_h2::server::Error

pub enum Error<S> where
    S: MakeService<(), Request<RecvBody>>, 
{ Handshake(Error), Protocol(Error), NewService(S::MakeError), Service(S::Error), Execute, }

Error produced by a Connection.

Variants

Handshake(Error)

Error produced during the HTTP/2.0 handshake.

Protocol(Error)

Error produced by the HTTP/2.0 stream

NewService(S::MakeError)

Error produced when obtaining the service

Service(S::Error)

Error produced by the service

Execute

Error produced when attempting to spawn a task

Trait Implementations

impl<S> Display for Error<S> where
    S: MakeService<(), Request<RecvBody>>,
    S::MakeError: Display,
    S::Error: Display
[src]

impl<S> Debug for Error<S> where
    S: MakeService<(), Request<RecvBody>>,
    S::MakeError: Debug,
    S::Error: Debug
[src]

impl<S> Error for Error<S> where
    S: MakeService<(), Request<RecvBody>>,
    S::MakeError: Error,
    S::Error: Error
[src]

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

fn type_id(&self) -> TypeId where
    Self: 'static, 
1.34.0
[src]

Gets the TypeId of self

Auto Trait Implementations

impl<S> Send for Error<S> where
    <S as MakeService<(), Request<RecvBody>>>::Error: Send,
    <S as MakeService<(), Request<RecvBody>>>::MakeError: Send

impl<S> Sync for Error<S> where
    <S as MakeService<(), Request<RecvBody>>>::Error: Sync,
    <S as MakeService<(), Request<RecvBody>>>::MakeError: Sync

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto 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<T> Erased for T