Struct hyper::error::Error [−][src]
pub struct Error { /* fields omitted */ }
Represents errors that can occur handling HTTP streams.
Methods
impl Error
[src]
impl Error
pub fn is_parse(&self) -> bool
[src]
pub fn is_parse(&self) -> bool
Returns true if this was an HTTP parse error.
pub fn is_user(&self) -> bool
[src]
pub fn is_user(&self) -> bool
Returns true if this error was caused by user code.
pub fn is_canceled(&self) -> bool
[src]
pub fn is_canceled(&self) -> bool
Returns true if this was about a Request
that was canceled.
pub fn is_closed(&self) -> bool
[src]
pub fn is_closed(&self) -> bool
Returns true if a sender's channel is closed.
pub fn cause2(&self) -> Option<&(StdError + Sync + Send + 'static)>
[src]
pub fn cause2(&self) -> Option<&(StdError + Sync + Send + 'static)>
Returns the error's cause.
This is identical to Error::cause
except that it provides extra
bounds required to be able to downcast the error.
pub fn into_cause(self) -> Option<Box<StdError + Sync + Send>>
[src]
pub fn into_cause(self) -> Option<Box<StdError + Sync + Send>>
Consumes the error, returning its cause.
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error