pub enum HttpVersion {
Http1,
Http2,
}
Expand description
Enum that represents the HTTP version.
§Variants
Http1
- The HTTP/1.1 version.Http2
- The HTTP/2 version.
Variants§
Trait Implementations§
Source§impl Debug for HttpVersion
impl Debug for HttpVersion
Source§impl PartialEq for HttpVersion
impl PartialEq for HttpVersion
impl StructuralPartialEq for HttpVersion
Auto Trait Implementations§
impl Freeze for HttpVersion
impl RefUnwindSafe for HttpVersion
impl Send for HttpVersion
impl Sync for HttpVersion
impl Unpin for HttpVersion
impl UnwindSafe for HttpVersion
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