pub struct ConnectionOptions {
pub send_continue_response: bool,
pub send_date_header: bool,
pub max_concurrent_streams: u32,
pub initial_stream_window_size: u32,
pub initial_connection_window_size: u32,
pub max_frame_size: u32,
pub max_header_list_size: u32,
pub enable_connect_protocol: bool,
pub idle_timeout: Option<Duration>,
}Available on crate feature
h2 only.Expand description
Per-connection behavior options.
Fields§
§send_continue_response: boolAnswer requests with 100 Continue when they carry
expect: 100-continue.
send_date_header: boolAdd a Date header to responses.
max_concurrent_streams: u32SETTINGS_MAX_CONCURRENT_STREAMS announced to the peer.
initial_stream_window_size: u32SETTINGS_INITIAL_WINDOW_SIZE: per-stream DATA credit we start with.
initial_connection_window_size: u32Connection-level DATA credit we start with (RFC 9113 Section 6.9.1).
max_frame_size: u32Largest frame (payload) we send or receive (SETTINGS_MAX_FRAME_SIZE).
max_header_list_size: u32Largest decoded header list we accept (SETTINGS_MAX_HEADER_LIST_SIZE).
enable_connect_protocol: boolWhether to enable Extended CONNECT
idle_timeout: Option<Duration>Close the connection after this long with no frame from the peer
(RFC 9113 Section 10.5). None disables the idle timeout.
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
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 moreimpl Copy for ConnectionOptions
Source§impl Debug for ConnectionOptions
impl Debug for ConnectionOptions
Auto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnsafeUnpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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