pub struct Http2Settings {
pub initial_stream_window_size: Option<u32>,
pub initial_connection_window_size: Option<u32>,
pub adaptive_window: Option<bool>,
pub keep_alive_interval: Option<Duration>,
pub keep_alive_timeout: Option<Duration>,
pub max_frame_size: Option<u32>,
pub max_concurrent_reset_streams: Option<usize>,
pub max_send_buf_size: Option<usize>,
}Expand description
HTTP/2 connection settings for the client.
Fields§
§initial_stream_window_size: Option<u32>Initial window size for stream-level flow control (bytes).
initial_connection_window_size: Option<u32>Initial window size for connection-level flow control (bytes).
adaptive_window: Option<bool>Enable adaptive flow control (overrides window size settings when set).
keep_alive_interval: Option<Duration>Interval for HTTP/2 PING keep-alive frames.
keep_alive_timeout: Option<Duration>Timeout for acknowledgement of keep-alive PING before closing.
max_frame_size: Option<u32>Maximum HTTP/2 frame size (bytes).
max_concurrent_reset_streams: Option<usize>Maximum number of concurrent locally-reset streams.
max_send_buf_size: Option<usize>Maximum write buffer size per HTTP/2 stream (bytes).
Trait Implementations§
Source§impl Clone for Http2Settings
impl Clone for Http2Settings
Source§fn clone(&self) -> Http2Settings
fn clone(&self) -> Http2Settings
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 Debug for Http2Settings
impl Debug for Http2Settings
Source§impl Default for Http2Settings
impl Default for Http2Settings
Source§fn default() -> Http2Settings
fn default() -> Http2Settings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Http2Settings
impl RefUnwindSafe for Http2Settings
impl Send for Http2Settings
impl Sync for Http2Settings
impl Unpin for Http2Settings
impl UnsafeUnpin for Http2Settings
impl UnwindSafe for Http2Settings
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