pub enum HeadersParseError {
MissingMethod,
MethodNotConnect,
MissingScheme,
SchemeNotHttps,
MissingProtocol,
ProtocolNotWebTransport,
MissingAuthority,
MissingPath,
MissingStatusCode,
InvalidStatusCode,
}Expand description
Error when parsing Headers.
Variants§
MissingMethod
Method field is missing.
MethodNotConnect
Method is not ‘CONNECT’.
MissingScheme
Scheme field is missing.
SchemeNotHttps
Scheme is not ‘https’.
MissingProtocol
Protocol field is missing.
ProtocolNotWebTransport
Protocol is not ‘webtransport’.
MissingAuthority
Authority field is missing.
MissingPath
Path field is missing.
MissingStatusCode
Status field is missing.
InvalidStatusCode
The status code value is not valid.
Trait Implementations§
Source§impl Debug for HeadersParseError
impl Debug for HeadersParseError
Source§impl Display for HeadersParseError
impl Display for HeadersParseError
Source§impl Error for HeadersParseError
impl Error for HeadersParseError
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 HeadersParseError
impl RefUnwindSafe for HeadersParseError
impl Send for HeadersParseError
impl Sync for HeadersParseError
impl Unpin for HeadersParseError
impl UnwindSafe for HeadersParseError
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