pub enum HttpVersionError {
Unsupported,
}Expand description
Errors from HTTP version validation.
Variants§
Unsupported
The version string is not recognized.
Trait Implementations§
Source§impl Clone for HttpVersionError
impl Clone for HttpVersionError
Source§fn clone(&self) -> HttpVersionError
fn clone(&self) -> HttpVersionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HttpVersionError
impl Debug for HttpVersionError
Source§impl Display for HttpVersionError
impl Display for HttpVersionError
impl Eq for HttpVersionError
Source§impl Error for HttpVersionError
impl Error for HttpVersionError
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<HttpVersionError> for RequestHeadError
impl From<HttpVersionError> for RequestHeadError
Source§fn from(e: HttpVersionError) -> Self
fn from(e: HttpVersionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HttpVersionError
impl PartialEq for HttpVersionError
impl StructuralPartialEq for HttpVersionError
Auto Trait Implementations§
impl Freeze for HttpVersionError
impl RefUnwindSafe for HttpVersionError
impl Send for HttpVersionError
impl Sync for HttpVersionError
impl Unpin for HttpVersionError
impl UnsafeUnpin for HttpVersionError
impl UnwindSafe for HttpVersionError
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