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) -> &str
pub fn encode<B: Buf + BufMut>(&mut self, buffer: &mut B) -> WebResult<usize>
pub fn is_http1(&self) -> bool
pub fn is_http2(&self) -> bool
Trait Implementations§
source§impl PartialEq for Version
impl PartialEq for Version
impl Copy for Version
impl Eq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
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