[][src]Enum solicit::http::frame::settings::HttpSetting

pub enum HttpSetting {
    HeaderTableSize(u32),
    EnablePush(u32),
    MaxConcurrentStreams(u32),
    InitialWindowSize(u32),
    MaxFrameSize(u32),
    MaxHeaderListSize(u32),
}

An enum that lists all valid settings that can be sent in a SETTINGS frame.

Each setting has a value that is a 32 bit unsigned integer (6.5.1.).

Variants

HeaderTableSize(u32)
EnablePush(u32)
MaxConcurrentStreams(u32)
InitialWindowSize(u32)
MaxFrameSize(u32)
MaxHeaderListSize(u32)

Implementations

impl HttpSetting[src]

pub fn from_id(id: u16, val: u32) -> Option<HttpSetting>[src]

Creates a new HttpSetting with the correct variant corresponding to the given setting id, based on the settings IDs defined in section 6.5.2.

pub fn get_id(&self) -> u16[src]

Returns the setting ID as an unsigned 16 bit integer, as defined in section 6.5.2.

pub fn get_val(&self) -> u32[src]

Gets the setting value by unpacking it from the wrapped u32.

Trait Implementations

impl Clone for HttpSetting[src]

impl Copy for HttpSetting[src]

impl Debug for HttpSetting[src]

impl PartialEq<HttpSetting> for HttpSetting[src]

impl StructuralPartialEq for HttpSetting[src]

Auto Trait Implementations

impl RefUnwindSafe for HttpSetting

impl Send for HttpSetting

impl Sync for HttpSetting

impl Unpin for HttpSetting

impl UnwindSafe for HttpSetting

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.