pub enum HttpServerProtocol {
Auto,
Http1Only,
Http2Only,
}Expand description
Supported inbound HTTP protocols for server listeners.
Variants§
Auto
Accept both HTTP/1.1 and HTTP/2, matching the current default behavior.
Http1Only
Accept only HTTP/1.x connections.
Http2Only
Accept only HTTP/2 connections.
Trait Implementations§
Source§impl Clone for HttpServerProtocol
impl Clone for HttpServerProtocol
Source§fn clone(&self) -> HttpServerProtocol
fn clone(&self) -> HttpServerProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HttpServerProtocol
Source§impl Debug for HttpServerProtocol
impl Debug for HttpServerProtocol
Source§impl Default for HttpServerProtocol
impl Default for HttpServerProtocol
Source§fn default() -> HttpServerProtocol
fn default() -> HttpServerProtocol
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpServerProtocol
impl<'de> Deserialize<'de> for HttpServerProtocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HttpServerProtocol
Source§impl Hash for HttpServerProtocol
impl Hash for HttpServerProtocol
Source§impl PartialEq for HttpServerProtocol
impl PartialEq for HttpServerProtocol
Source§fn eq(&self, other: &HttpServerProtocol) -> bool
fn eq(&self, other: &HttpServerProtocol) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HttpServerProtocol
impl Serialize for HttpServerProtocol
impl StructuralPartialEq for HttpServerProtocol
Auto Trait Implementations§
impl Freeze for HttpServerProtocol
impl RefUnwindSafe for HttpServerProtocol
impl Send for HttpServerProtocol
impl Sync for HttpServerProtocol
impl Unpin for HttpServerProtocol
impl UnsafeUnpin for HttpServerProtocol
impl UnwindSafe for HttpServerProtocol
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