pub enum HttpError {
InvalidUrl,
InvalidStatusLine,
InvalidHeader,
InvalidChunkSize,
BodyTooLarge,
TooManyRedirects,
Timeout,
ParseError(String),
}Expand description
Errors that can occur during HTTP operations.
Variants§
InvalidUrl
URL could not be parsed.
InvalidStatusLine
Response contained an invalid status line.
InvalidHeader
Response contained an invalid header.
InvalidChunkSize
Chunked encoding contained an invalid chunk size.
BodyTooLarge
Response body exceeds maximum allowed size.
TooManyRedirects
Too many redirects followed.
Timeout
Connection timed out.
ParseError(String)
Generic parse error with a message.
Trait Implementations§
impl Eq for HttpError
impl StructuralPartialEq for HttpError
Auto Trait Implementations§
impl Freeze for HttpError
impl RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin for HttpError
impl UnwindSafe for HttpError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)