Struct EncoderConfig
pub struct EncoderConfig {
pub max_table_capacity: u64,
pub max_blocked_streams: u64,
pub target_capacity: u64,
pub huffman: bool,
pub defer_dynamic_first_section: bool,
pub field_section_base: FieldSectionBase,
pub max_field_section_size: usize,
pub max_encoder_stream_bytes: usize,
pub max_outstanding_sections: usize,
pub max_outstanding_references: usize,
}http-backend and http and std only.Expand description
Configuration and local resource budgets for an Encoder.
Fields§
§max_table_capacity: u64The peer’s SETTINGS_QPACK_MAX_TABLE_CAPACITY.
max_blocked_streams: u64The peer’s SETTINGS_QPACK_BLOCKED_STREAMS.
target_capacity: u64Capacity to use, clamped to the peer maximum.
huffman: boolAllow Huffman encoding when it reduces a literal’s wire size; plain encoding wins ties.
defer_dynamic_first_section: boolStart with a static/literal section, then permit ordinary dynamic compression.
field_section_base: FieldSectionBaseCoordinate system for dynamic references; table contents remain independent.
max_field_section_size: usizeMaximum uncompressed section size, including 32 bytes per field.
max_encoder_stream_bytes: usizeMaximum queued encoder-stream bytes. Compression, including preferred references and insertions, falls back to the native representation when it does not fit.
max_outstanding_sections: usizeMaximum sections awaiting Section Acknowledgment. Further sections use literals.
max_outstanding_references: usizeMaximum outstanding dynamic references, including repeated references within sections.
Implementations§
§impl EncoderConfig
impl EncoderConfig
pub fn apply_preferences(&mut self, preferences: EncoderPreferences)
pub fn apply_preferences(&mut self, preferences: EncoderPreferences)
Override encoding choices without replacing resource or peer limits.
Trait Implementations§
§impl Clone for EncoderConfig
impl Clone for EncoderConfig
§fn clone(&self) -> EncoderConfig
fn clone(&self) -> EncoderConfig
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 EncoderConfig
§impl Debug for EncoderConfig
impl Debug for EncoderConfig
§impl Default for EncoderConfig
impl Default for EncoderConfig
§fn default() -> EncoderConfig
fn default() -> EncoderConfig
Auto Trait Implementations§
impl Freeze for EncoderConfig
impl RefUnwindSafe for EncoderConfig
impl Send for EncoderConfig
impl Sync for EncoderConfig
impl Unpin for EncoderConfig
impl UnsafeUnpin for EncoderConfig
impl UnwindSafe for EncoderConfig
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