Enum snowboard::HttpVersion
source · pub enum HttpVersion {
V1_0,
V1_1,
V2_0,
V3_0,
UNKNOWN,
}
Expand description
HTTP protocol version.
HttpVersion::UNKNOWN
is used when the version is not specified or not valid.
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 Display for HttpVersion
impl Display for HttpVersion
source§impl From<&str> for HttpVersion
impl From<&str> for HttpVersion
source§impl Hash for HttpVersion
impl Hash for HttpVersion
source§impl PartialEq for HttpVersion
impl PartialEq for HttpVersion
source§fn eq(&self, other: &HttpVersion) -> bool
fn eq(&self, other: &HttpVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HttpVersion
impl Eq for HttpVersion
impl StructuralEq for HttpVersion
impl StructuralPartialEq for HttpVersion
Auto Trait Implementations§
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