pub struct Settings {
pub header_table_size: u32,
pub enable_push: bool,
pub max_concurrent_streams: Option<u32>,
pub initial_window_size: u32,
pub max_frame_size: u32,
pub max_header_list_size: Option<u32>,
}Expand description
HTTP/2 SETTINGS parameters.
Fields§
§header_table_size: u32SETTINGS_HEADER_TABLE_SIZE (0x1). Default 4096.
enable_push: boolSETTINGS_ENABLE_PUSH (0x2). Default 1 (enabled).
max_concurrent_streams: Option<u32>SETTINGS_MAX_CONCURRENT_STREAMS (0x3). Default unlimited.
initial_window_size: u32SETTINGS_INITIAL_WINDOW_SIZE (0x4). Default 65535.
max_frame_size: u32SETTINGS_MAX_FRAME_SIZE (0x5). Default 16384.
max_header_list_size: Option<u32>SETTINGS_MAX_HEADER_LIST_SIZE (0x6). Default unlimited.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnsafeUnpin for Settings
impl UnwindSafe for Settings
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