pub struct H3ConnectionConfig {
pub qpack_mode: H3QpackMode,
pub endpoint_role: H3EndpointRole,
pub max_frame_payload_size: usize,
pub max_concurrent_request_streams: Option<u64>,
}Expand description
Connection-level configuration for native HTTP/3 mapping.
Fields§
§qpack_mode: H3QpackModeQPACK policy.
endpoint_role: H3EndpointRoleEndpoint role for GOAWAY validation.
max_frame_payload_size: usizeMaximum frame payload size in bytes (RFC 9114 §4.2).
max_concurrent_request_streams: Option<u64>Peer-advertised limit on concurrent client-initiated bidirectional
request streams (QUIC initial_max_streams_bidi / MAX_STREAMS).
None disables enforcement at the HTTP/3 layer. Per RFC 9114 §5.1.2,
endpoints MUST respect QUIC concurrency limits; set this from the
transport parameter negotiated at connection start, and update it as
MAX_STREAMS frames arrive.
Implementations§
Source§impl H3ConnectionConfig
impl H3ConnectionConfig
Sourcepub fn with_dynamic_qpack(self) -> Self
pub fn with_dynamic_qpack(self) -> Self
Enable dynamic QPACK table support.
This allows the use of dynamic table operations for more efficient header compression, but requires state synchronization between endpoints.
Trait Implementations§
Source§impl Clone for H3ConnectionConfig
impl Clone for H3ConnectionConfig
Source§fn clone(&self) -> H3ConnectionConfig
fn clone(&self) -> H3ConnectionConfig
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 H3ConnectionConfig
Source§impl Debug for H3ConnectionConfig
impl Debug for H3ConnectionConfig
Source§impl Default for H3ConnectionConfig
impl Default for H3ConnectionConfig
impl Eq for H3ConnectionConfig
Source§impl PartialEq for H3ConnectionConfig
impl PartialEq for H3ConnectionConfig
impl StructuralPartialEq for H3ConnectionConfig
Auto Trait Implementations§
impl Freeze for H3ConnectionConfig
impl RefUnwindSafe for H3ConnectionConfig
impl Send for H3ConnectionConfig
impl Sync for H3ConnectionConfig
impl Unpin for H3ConnectionConfig
impl UnsafeUnpin for H3ConnectionConfig
impl UnwindSafe for H3ConnectionConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).