Enum hyper::server::conn::ConnectionMode
source · enum ConnectionMode {
H1Only,
H2Only,
Fallback,
}
Expand description
The internal mode of HTTP protocol which indicates the behavior when a parse error occurs.
Variants§
H1Only
Always use HTTP/1 and do not upgrade when a parse error occurs.
H2Only
Always use HTTP/2.
Fallback
Use HTTP/1 and try to upgrade to h2 when a parse error occurs.
Trait Implementations§
source§impl Clone for ConnectionMode
impl Clone for ConnectionMode
source§fn clone(&self) -> ConnectionMode
fn clone(&self) -> ConnectionMode
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 ConnectionMode
impl Debug for ConnectionMode
source§impl Default for ConnectionMode
impl Default for ConnectionMode
source§fn default() -> ConnectionMode
fn default() -> ConnectionMode
Returns the “default value” for a type. Read more
source§impl PartialEq for ConnectionMode
impl PartialEq for ConnectionMode
source§fn eq(&self, other: &ConnectionMode) -> bool
fn eq(&self, other: &ConnectionMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionMode
Auto Trait Implementations§
impl Freeze for ConnectionMode
impl RefUnwindSafe for ConnectionMode
impl Send for ConnectionMode
impl Sync for ConnectionMode
impl Unpin for ConnectionMode
impl UnwindSafe for ConnectionMode
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