pub enum Version {
Http2,
Http3,
}
Available on crate features
__https
or __h3
only.Expand description
Represents a version of the HTTP spec.
Variants§
Http2
Available on crate feature
__https
only.HTTP/2 for DoH.
Http3
Available on crate feature
__h3
only.HTTP/3 for DoH3.
Trait Implementations§
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