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<DeadlineExceeded> for HttpError
impl From<DeadlineExceeded> for HttpError
source§fn from(_: DeadlineExceeded) -> Self
fn from(_: DeadlineExceeded) -> Self
Converts to this type from the input type.
source§impl Ord for HttpError
impl Ord for HttpError
source§impl PartialEq for HttpError
impl PartialEq for HttpError
source§impl PartialOrd for HttpError
impl PartialOrd for HttpError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for HttpError
impl StructuralEq for HttpError
impl StructuralPartialEq for HttpError
Auto Trait Implementations§
impl RefUnwindSafe for HttpError
impl Send for HttpError
impl Sync for HttpError
impl Unpin 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