pub enum Version {
None,
Http10,
Http11,
Http2,
Http3,
}
Variants§
Implementations§
Source§impl Version
impl Version
pub const HTTP10: Version = Version::Http10
pub const SHTTP10: &'static str = "HTTP/1.0"
pub const HTTP11: Version = Version::Http11
pub const SHTTP11: &'static str = "HTTP/1.1"
pub const HTTP2: Version = Version::Http2
pub const SHTTP2: &'static str = "HTTP/2"
pub const HTTP3: Version = Version::Http3
pub const SHTTP3: &'static str = "HTTP/3"
pub fn as_str(&self) -> &'static str
pub fn encode<B: Bt + BtMut>(&mut self, buffer: &mut B) -> WebResult<usize>
pub fn is_http1(&self) -> bool
pub fn is_http2(&self) -> bool
Trait Implementations§
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.