pub enum HttpErrorKind {
NoCurl,
Status(u16),
TooLarge,
TimedOut,
NotUtf8,
Network,
Refused,
}Expand description
The kinds of HttpError.
Variants§
NoCurl
curl isn’t installed, or couldn’t start.
Status(u16)
The server answered with this HTTP status, 400 or over.
TooLarge
The body was over Http::max_size.
TimedOut
The request took longer than Http::timeout.
NotUtf8
The body isn’t UTF-8.
Network
Anything on the way, such as a name that didn’t resolve or a refused connection.
Refused
The URL, or a redirect, isn’t http: or https:.
Trait Implementations§
Source§impl Clone for HttpErrorKind
impl Clone for HttpErrorKind
impl Copy for HttpErrorKind
Source§impl Debug for HttpErrorKind
impl Debug for HttpErrorKind
impl Eq for HttpErrorKind
Source§impl PartialEq for HttpErrorKind
impl PartialEq for HttpErrorKind
impl StructuralPartialEq for HttpErrorKind
Auto Trait Implementations§
impl Forget for HttpErrorKind
impl Freeze for HttpErrorKind
impl Move for HttpErrorKind
impl RefUnwindSafe for HttpErrorKind
impl Send for HttpErrorKind
impl Sync for HttpErrorKind
impl Unpin for HttpErrorKind
impl UnsafeUnpin for HttpErrorKind
impl UnwindSafe for HttpErrorKind
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