Enum solicit::http::frame::settings::HttpSetting [−][src]
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)
Methods
impl HttpSetting
[src]
impl HttpSetting
pub fn from_id(id: u16, val: u32) -> Option<HttpSetting>
[src]
pub fn from_id(id: u16, val: u32) -> Option<HttpSetting>
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]
pub fn get_id(&self) -> u16
Returns the setting ID as an unsigned 16 bit integer, as defined in section 6.5.2.
pub fn get_val(&self) -> u32
[src]
pub fn get_val(&self) -> u32
Gets the setting value by unpacking it from the wrapped u32
.
Trait Implementations
impl Clone for HttpSetting
[src]
impl Clone for HttpSetting
fn clone(&self) -> HttpSetting
[src]
fn clone(&self) -> HttpSetting
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for HttpSetting
[src]
impl PartialEq for HttpSetting
fn eq(&self, other: &HttpSetting) -> bool
[src]
fn eq(&self, other: &HttpSetting) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &HttpSetting) -> bool
[src]
fn ne(&self, other: &HttpSetting) -> bool
This method tests for !=
.
impl Debug for HttpSetting
[src]
impl Debug for HttpSetting
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for HttpSetting
[src]
impl Copy for HttpSetting
Auto Trait Implementations
impl Send for HttpSetting
impl Send for HttpSetting
impl Sync for HttpSetting
impl Sync for HttpSetting