pub struct ConnectOptions {
pub header_table_size: Option<usize>,
pub enable_push: Option<bool>,
pub initial_window_size: Option<u32>,
pub max_frame_size: Option<usize>,
pub connection_window_size: Option<u32>,
}Expand description
Settings we advertise + push handling (port of ConnectOptions).
Fields§
§header_table_size: Option<usize>§enable_push: Option<bool>§initial_window_size: Option<u32>Our advertised per-stream receive window (SETTINGS_INITIAL_WINDOW_SIZE). Default 1 MiB. Replenished as the application consumes response bodies.
max_frame_size: Option<usize>§connection_window_size: Option<u32>Our connection-level receive window in bytes. Default 64 MiB. Grown at
startup from the spec default of 65535 via a WINDOW_UPDATE(0), then
replenished on consumption. Keep it larger than initial_window_size so a
single unread stream can’t stall the whole connection.
Trait Implementations§
Source§impl Clone for ConnectOptions
impl Clone for ConnectOptions
Source§fn clone(&self) -> ConnectOptions
fn clone(&self) -> ConnectOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ConnectOptions
impl Default for ConnectOptions
Source§fn default() -> ConnectOptions
fn default() -> ConnectOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectOptions
impl RefUnwindSafe for ConnectOptions
impl Send for ConnectOptions
impl Sync for ConnectOptions
impl Unpin for ConnectOptions
impl UnsafeUnpin for ConnectOptions
impl UnwindSafe for ConnectOptions
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