pub enum HeaderReadError {
Eof,
Timeout,
}Expand description
Errors from read_until_header_end.
Variants§
Eof
The reader closed (read returned 0) or errored before the
\r\n\r\n separator was seen. Hosts typically map this to
502 Bad Gateway.
Timeout
The deadline expired before the header block completed. Hosts
typically map this to 504 Gateway Timeout.
Trait Implementations§
Source§impl Debug for HeaderReadError
impl Debug for HeaderReadError
Source§impl Display for HeaderReadError
impl Display for HeaderReadError
Source§impl Error for HeaderReadError
impl Error for HeaderReadError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for HeaderReadError
impl RefUnwindSafe for HeaderReadError
impl Send for HeaderReadError
impl Sync for HeaderReadError
impl Unpin for HeaderReadError
impl UnsafeUnpin for HeaderReadError
impl UnwindSafe for HeaderReadError
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