Setting

Enum Setting 

Source
pub enum Setting {
    EnablePush(u32),
    HeaderTableSize(u32),
    InitialWindowSize(u32),
    MaxConcurrentStreams(u32),
    MaxFrameSize(u32),
    MaxHeaderListSize(u32),
    Unsupported(u32),
}
Expand description

Available settings.

Variants§

§

EnablePush(u32)

Enable push setting.

§

HeaderTableSize(u32)

Header table size setting.

§

InitialWindowSize(u32)

Initial window size setting.

§

MaxConcurrentStreams(u32)

Maximum concurrent streams setting.

§

MaxFrameSize(u32)

Maximum frame size setting.

§

MaxHeaderListSize(u32)

Maximum header list size setting.

§

Unsupported(u32)

Unsupported setting.

Implementations§

Source§

impl Setting

Source

pub fn new(&mut self, id: u16, value: u32) -> Setting

Create a new Setting.

Source

pub fn is_enable_push(&self) -> bool

Indicates that this a Setting::HeadersTableSize.

Source

pub fn is_header_table_size(&self) -> bool

Indicates that this a Setting::HeadersTableSize.

Source

pub fn is_initial_window_size(&self) -> bool

Indicates that this a Setting::InitialWindowSize.

Source

pub fn is_max_concurrent_streams(&self) -> bool

Indicates that this a Setting::MaxConcurrentStreams.

Source

pub fn is_max_frame_size(&self) -> bool

Indicates that this a Setting::MaxFrameSize.

Source

pub fn is_max_header_list_size(&self) -> bool

Indicates that this a Setting::MaxHeaderListSize.

Source

pub fn is_unsupported(&self) -> bool

Indicates that this a Setting::Unsupported.

Source

pub fn value(&self) -> u32

Retrieve the value.

Trait Implementations§

Source§

impl Debug for Setting

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Setting

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.