Struct h2::Error[][src]

pub struct Error { /* fields omitted */ }

Represents HTTP/2.0 operation errors.

Error covers error cases raised by protocol errors caused by the peer, I/O (transport) errors, and errors caused by the user of the library.

If the error was caused by the remote peer, then it will contain a Reason which can be obtained with the reason function.

Methods

impl Error
[src]

If the error was caused by the remote peer, the error reason.

This is either an error received by the peer or caused by an invalid action taken by the peer (i.e. a protocol error).

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Reason> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

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

Auto Trait Implementations

impl Send for Error

impl Sync for Error