Struct H2ServerContextParams
pub struct H2ServerContextParams {
pub initial_settings: Option<Arc<Settings>>,
pub enable_connect_protocol: Option<bool>,
pub max_concurrent_streams: Option<u32>,
pub header_table_size: Option<u32>,
pub max_frame_size: Option<u32>,
pub max_header_list_size: Option<u32>,
pub initial_stream_window_size: Option<u32>,
pub initial_connection_window_size: Option<u32>,
pub adaptive_window: Option<bool>,
}http and std only.Expand description
Per-conn override for the h2 server’s initial SETTINGS frame, set on
the IO’s Extensions. Any field left None retains the builder
default. Some(value) overrides one-to-one; this type can’t express
“explicitly unset” — set the builder directly if you need that.
Used by arbitrary connection layers, including MITM relays. A complete
initial_settings frame takes precedence over scalar SETTINGS overrides;
connection-window and adaptive-flow options remain independent.
Fields§
§initial_settings: Option<Arc<Settings>>Replace the complete initial SETTINGS frame, including order and omissions. Semantic codec/stream limits use this same frame; a stream or header-list cap it omits keeps the builder’s value, enforced unadvertised. Absent keeps builder defaults. A server frame must not contain SETTINGS_ENABLE_PUSH.
enable_connect_protocol: Option<bool>Whether to advertise the extended CONNECT protocol in the initial SETTINGS frame.
max_concurrent_streams: Option<u32>SETTINGS_MAX_CONCURRENT_STREAMS.
header_table_size: Option<u32>SETTINGS_HEADER_TABLE_SIZE.
max_frame_size: Option<u32>SETTINGS_MAX_FRAME_SIZE.
max_header_list_size: Option<u32>SETTINGS_MAX_HEADER_LIST_SIZE.
initial_stream_window_size: Option<u32>SETTINGS_INITIAL_WINDOW_SIZE (stream-level flow control).
initial_connection_window_size: Option<u32>Connection-level flow-control window.
adaptive_window: Option<bool>Whether to use adaptive flow control. If Some(true), the
stream/connection window-size overrides above are reset to the
spec default before adaptive control takes over.
Trait Implementations§
§impl Clone for H2ServerContextParams
impl Clone for H2ServerContextParams
§fn clone(&self) -> H2ServerContextParams
fn clone(&self) -> H2ServerContextParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for H2ServerContextParams
impl Debug for H2ServerContextParams
§impl Default for H2ServerContextParams
impl Default for H2ServerContextParams
§fn default() -> H2ServerContextParams
fn default() -> H2ServerContextParams
impl Extension for H2ServerContextParams
impl HttpExtension for H2ServerContextParams
Auto Trait Implementations§
impl Freeze for H2ServerContextParams
impl RefUnwindSafe for H2ServerContextParams
impl Send for H2ServerContextParams
impl Sync for H2ServerContextParams
impl Unpin for H2ServerContextParams
impl UnsafeUnpin for H2ServerContextParams
impl UnwindSafe for H2ServerContextParams
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more