pub enum HttpVersion {
V1_1,
V2,
}
Available on crate features
blocking-client
and http-client
only.Expand description
Available HTTP version numbers.
Variants§
Trait Implementations§
source§impl Clone for HttpVersion
impl Clone for HttpVersion
source§fn clone(&self) -> HttpVersion
fn clone(&self) -> HttpVersion
Returns a copy of the value. Read more
1.0.0 · 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 HttpVersion
impl Debug for HttpVersion
source§impl Ord for HttpVersion
impl Ord for HttpVersion
source§fn cmp(&self, other: &HttpVersion) -> Ordering
fn cmp(&self, other: &HttpVersion) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HttpVersion
impl PartialEq for HttpVersion
source§impl PartialOrd for HttpVersion
impl PartialOrd for HttpVersion
impl Copy for HttpVersion
impl Eq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)