Struct hyper::error::Error
[−]
[src]
pub struct Error { /* fields omitted */ }
Represents errors that can occur handling HTTP streams.
Methods
impl Error
[src]
pub fn is_parse(&self) -> bool
[src]
Returns true if this was an HTTP parse error.
pub fn is_user(&self) -> bool
[src]
Returns true if this error was caused by user code.
pub fn is_canceled(&self) -> bool
[src]
Returns true if this was about a Request
that was canceled.
pub fn is_closed(&self) -> bool
[src]
Returns true if a sender's channel is closed.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more