pub enum HttpProtocol {
Http1,
Http2,
Both,
}Expand description
The HTTP protocol to use when clients are connecting.
This should match the version(s) of HTTP used to serve your application in Hyper.
Using Both will prefer HTTP/2 over HTTP/1.1
Variants§
Trait Implementations§
source§impl Clone for HttpProtocol
impl Clone for HttpProtocol
source§fn clone(&self) -> HttpProtocol
fn clone(&self) -> HttpProtocol
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 HttpProtocol
impl Debug for HttpProtocol
impl Copy for HttpProtocol
Auto Trait Implementations§
impl RefUnwindSafe for HttpProtocol
impl Send for HttpProtocol
impl Sync for HttpProtocol
impl Unpin for HttpProtocol
impl UnwindSafe for HttpProtocol
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