Struct hyper::Error [−][src]
pub struct Error { /* fields omitted */ }
Expand description
Represents errors that can occur handling HTTP streams.
Implementations
impl Error
[src]
impl Error
[src]pub fn is_parse_too_large(&self) -> bool
[src]
pub fn is_parse_too_large(&self) -> bool
[src]Returns true if this was an HTTP parse error caused by a message that was too large.
pub fn is_parse_status(&self) -> bool
[src]
pub fn is_parse_status(&self) -> bool
[src]Returns true if this was an HTTP parse error caused by an invalid response status code or reason phrase.
pub fn is_canceled(&self) -> bool
[src]
pub fn is_canceled(&self) -> bool
[src]Returns true if this was about a Request
that was canceled.
pub fn is_connect(&self) -> bool
[src]
pub fn is_connect(&self) -> bool
[src]Returns true if this was an error from Connect
.
pub fn is_incomplete_message(&self) -> bool
[src]
pub fn is_incomplete_message(&self) -> bool
[src]Returns true if the connection closed before a message could complete.
pub fn is_body_write_aborted(&self) -> bool
[src]
pub fn is_body_write_aborted(&self) -> bool
[src]Returns true if the body write was aborted.
pub fn is_timeout(&self) -> bool
[src]
pub fn is_timeout(&self) -> bool
[src]Returns true if the error was caused by a timeout.
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn StdError + 'static)>
[src]
fn source(&self) -> Option<&(dyn StdError + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]