Struct h2::Error [−][src]
pub struct Error { /* fields omitted */ }
Expand description
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.
Implementations
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
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more