pub enum HttpError {
}Expand description
A set of errors that can occur parsing HTTP streams.
Variants
Method
An invalid Method, such as GE,T.
Uri(UriError)
An invalid Uri, such as exam ple.domain.
Version
An invalid HttpVersion, such as HTP/1.1
Header
An invalid Header.
TooLarge
A message head is too large to be reasonable.
Incomplete
A message reached EOF, but is not complete.
Status
An invalid Status, such as 1337 ELITE.
Timeout
A timeout occurred waiting for an IO event.
Upgrade
A protocol upgrade was encountered, but not yet supported in hyper.
Cancel(Canceled)
A pending item was dropped before ever being processed.
Closed
Indicates a connection is closed.
Io(Error)
An io::Error that occurred while trying to read or write to a network stream.
Utf8(Utf8Error)
Parsing a field as string failed
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
use the Display impl or to_string()
sourcepub fn cause(&self) -> Option<&dyn Error>
pub fn cause(&self) -> Option<&dyn Error>
replaced by Error::source, which can support downcasting
sourceimpl From<Error> for SearchError
impl From<Error> for SearchError
sourcefn from(err: Error) -> SearchError
fn from(err: Error) -> SearchError
Performs the conversion.
sourceimpl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
sourcepub fn from(err: FromUtf8Error) -> Error
pub fn from(err: FromUtf8Error) -> Error
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more