pub enum PollDataError {
Hyper(Error),
// some variants omitted
}
Expand description
An error type which will returned at receiving the message body.
Variants§
Trait Implementations§
Source§impl Debug for PollDataError
impl Debug for PollDataError
Source§impl Display for PollDataError
impl Display for PollDataError
Source§impl Fail for PollDataError
impl Fail for PollDataError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl HttpError for PollDataError
impl HttpError for PollDataError
Source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Return the HTTP status code associated with this error type.
Source§fn append_headers(&self, headers: &mut HeaderMap<HeaderValue>)
fn append_headers(&self, headers: &mut HeaderMap<HeaderValue>)
Append a set of header values to the header map.
Auto Trait Implementations§
impl Freeze for PollDataError
impl !RefUnwindSafe for PollDataError
impl Send for PollDataError
impl Sync for PollDataError
impl Unpin for PollDataError
impl !UnwindSafe for PollDataError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more