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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)