Struct H2SettingsLimits
#[non_exhaustive]pub struct H2SettingsLimits {
pub entries: usize,
pub header_table_size: u32,
pub frame_size: u32,
pub header_list_size: u32,
pub max_concurrent_streams: u32,
}http and std only.Expand description
Resource ceilings for an explicit initial SETTINGS frame or native relay mirror. Install on a connection IO to narrow or expand its supported byte budgets. Literal wire observation itself retains at most 256 setting occurrences. An explicit frame exceeding a ceiling is an error; a relay mirror lowers to it. Ceilings below a protocol minimum count as that minimum.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entries: usizeMaximum retained ordered setting occurrences, including duplicates/unknowns.
header_table_size: u32Maximum advertised HPACK decoder table size in bytes.
frame_size: u32Maximum advertised frame payload size in bytes.
header_list_size: u32Maximum explicitly advertised decoded header-list size in bytes.
max_concurrent_streams: u32Maximum explicitly advertised concurrent streams the peer may open.
Implementations§
§impl H2SettingsLimits
impl H2SettingsLimits
pub fn new() -> H2SettingsLimits
pub fn header_table_ceiling(&self) -> u32
pub fn header_table_ceiling(&self) -> u32
Advertised HPACK table ceiling; never below the protocol default an omission implies.
pub fn frame_size_ceiling(&self) -> u32
pub fn frame_size_ceiling(&self) -> u32
Advertised frame size ceiling, within the protocol’s valid range.
Trait Implementations§
§impl Clone for H2SettingsLimits
impl Clone for H2SettingsLimits
§fn clone(&self) -> H2SettingsLimits
fn clone(&self) -> H2SettingsLimits
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for H2SettingsLimits
§impl Debug for H2SettingsLimits
impl Debug for H2SettingsLimits
§impl Default for H2SettingsLimits
impl Default for H2SettingsLimits
§fn default() -> H2SettingsLimits
fn default() -> H2SettingsLimits
impl Extension for H2SettingsLimits
impl HttpExtension for H2SettingsLimits
Auto Trait Implementations§
impl Freeze for H2SettingsLimits
impl RefUnwindSafe for H2SettingsLimits
impl Send for H2SettingsLimits
impl Sync for H2SettingsLimits
impl Unpin for H2SettingsLimits
impl UnsafeUnpin for H2SettingsLimits
impl UnwindSafe for H2SettingsLimits
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