Enum spirit_hyper::HttpMode[][src]

#[non_exhaustive]pub enum HttpMode {
    Both,
    Http1Only,
    Http2Only,
}

Configuration of the selected HTTP protocol version.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Both

Enable both HTTP1 and HTTP2 protocols.

Http1Only

Disable the HTTP2 protocol.

Http2Only

Disable the HTTP1 protocol.

Trait Implementations

impl Clone for HttpMode[src]

impl Copy for HttpMode[src]

impl Debug for HttpMode[src]

impl Default for HttpMode[src]

impl<'de> Deserialize<'de> for HttpMode[src]

impl Eq for HttpMode[src]

impl Hash for HttpMode[src]

impl Ord for HttpMode[src]

impl PartialEq<HttpMode> for HttpMode[src]

impl PartialOrd<HttpMode> for HttpMode[src]

impl Serialize for HttpMode[src]

impl StructDoc for HttpMode[src]

impl StructuralEq for HttpMode[src]

impl StructuralPartialEq for HttpMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.