pub enum Http11HeadersReadError {
Eof,
ParseResponseHeaders(Error),
}Expand description
Failure causes during the HTTP/1.X read-headers flow.
Variants§
Eof
The stream reached EOF before the head was complete.
ParseResponseHeaders(Error)
The response head could not be parsed.
Trait Implementations§
Source§impl Debug for Http11HeadersReadError
impl Debug for Http11HeadersReadError
Source§impl Display for Http11HeadersReadError
impl Display for Http11HeadersReadError
Source§impl Error for Http11HeadersReadError
impl Error for Http11HeadersReadError
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()
Source§impl From<Http11HeadersReadError> for Http10SendError
impl From<Http11HeadersReadError> for Http10SendError
Source§fn from(err: Http11HeadersReadError) -> Self
fn from(err: Http11HeadersReadError) -> Self
Converts to this type from the input type.
Source§impl From<Http11HeadersReadError> for Http11SendError
impl From<Http11HeadersReadError> for Http11SendError
Source§fn from(err: Http11HeadersReadError) -> Self
fn from(err: Http11HeadersReadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Http11HeadersReadError
impl RefUnwindSafe for Http11HeadersReadError
impl Send for Http11HeadersReadError
impl Sync for Http11HeadersReadError
impl Unpin for Http11HeadersReadError
impl UnsafeUnpin for Http11HeadersReadError
impl UnwindSafe for Http11HeadersReadError
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