Struct hyper::error::Error [−][src]
pub struct Error { /* fields omitted */ }Represents errors that can occur handling HTTP streams.
Methods
impl Error[src]
impl Errorpub fn is_parse(&self) -> bool[src]
pub fn is_parse(&self) -> boolReturns true if this was an HTTP parse error.
pub fn is_user(&self) -> bool[src]
pub fn is_user(&self) -> boolReturns true if this error was caused by user code.
pub fn is_canceled(&self) -> bool[src]
pub fn is_canceled(&self) -> boolReturns true if this was about a Request that was canceled.
pub fn is_closed(&self) -> bool[src]
pub fn is_closed(&self) -> boolReturns 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 Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Error[src]
impl Display for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl StdError for Error[src]
impl StdError for Error