pub enum HttpError {
Show 28 variants
AlreadyGotBody,
BodyNotAvailable,
BodyNotRead,
BodyNotUtf8,
BodyTooLong,
CacheDirNotConfigured,
Disconnected,
DuplicateContentLengthHeader,
DuplicateContentTypeHeader,
DuplicateTransferEncodingHeader,
ErrorReadingFile(ErrorKind, String),
ErrorReadingResponseBody(ErrorKind, String),
ErrorSavingFile(ErrorKind, String),
HandlerDeadlineExceeded,
HeadTooLong,
InvalidContentLength,
MalformedCookieHeader,
MalformedHeaderLine,
MalformedPath,
MalformedRequestLine,
MissingRequestLine,
ResponseAlreadySent,
ResponseNotSent,
TimerThreadNotStarted,
Truncated,
UnsupportedProtocol,
UnsupportedTransferEncoding,
UnwritableResponse,
}Variants§
AlreadyGotBody
BodyNotAvailable
BodyNotRead
BodyNotUtf8
BodyTooLong
CacheDirNotConfigured
Disconnected
DuplicateContentLengthHeader
DuplicateContentTypeHeader
DuplicateTransferEncodingHeader
ErrorReadingFile(ErrorKind, String)
ErrorReadingResponseBody(ErrorKind, String)
ErrorSavingFile(ErrorKind, String)
HandlerDeadlineExceeded
HeadTooLong
InvalidContentLength
MalformedCookieHeader
MalformedHeaderLine
MalformedPath
MalformedRequestLine
MissingRequestLine
ResponseAlreadySent
ResponseNotSent
TimerThreadNotStarted
Truncated
UnsupportedProtocol
UnsupportedTransferEncoding
UnwritableResponse
Implementations§
Source§impl HttpError
impl HttpError
pub fn error_reading_file(e: Error) -> Self
pub fn error_reading_response_body(e: Error) -> Self
pub fn error_saving_file(e: Error) -> Self
pub fn is_server_error(&self) -> bool
pub fn description(&self) -> String
Trait Implementations§
Source§impl From<DeadlineError> for HttpError
impl From<DeadlineError> for HttpError
Source§fn from(e: DeadlineError) -> Self
fn from(e: DeadlineError) -> Self
Converts to this type from the input type.
Source§impl From<DeadlineExceededError> for HttpError
impl From<DeadlineExceededError> for HttpError
Source§fn from(_: DeadlineExceededError) -> Self
fn from(_: DeadlineExceededError) -> Self
Converts to this type from the input type.
Source§impl Ord for HttpError
impl Ord for HttpError
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for HttpError
impl PartialOrd for HttpError
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 UnsafeUnpin for HttpError
impl UnwindSafe for HttpError
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