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]
pub fn reason(&self) -> Option<Reason>
[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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Error> for Error
[src]
impl From<Reason> for Error
[src]
impl Display for Error
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more