pub struct QpackFieldSectionEncoder { /* private fields */ }Expand description
An allocation-free QPACK field-section encoder configuration.
Implementations§
Source§impl QpackFieldSectionEncoder
impl QpackFieldSectionEncoder
Sourcepub const fn new(maximum_dynamic_table_capacity: u64) -> Self
pub const fn new(maximum_dynamic_table_capacity: u64) -> Self
Creates an encoder using the peer’s maximum dynamic-table capacity.
Sourcepub const fn maximum_dynamic_table_capacity(self) -> u64
pub const fn maximum_dynamic_table_capacity(self) -> u64
Returns the peer’s maximum dynamic-table capacity.
Sourcepub fn encode<'plan, 'output>(
&self,
stream_id: u64,
plans: &[QpackFieldPlan<'plan>],
base: QpackFieldSectionBase,
table: &QpackDynamicTable<'_, '_>,
state: &mut QpackEncoderState<'_, '_>,
buffers: QpackFieldSectionEncodeBuffers<'_, 'plan, 'output>,
) -> Result<QpackEncodedFieldSection<'output>, QpackFieldSectionEncodeError>
pub fn encode<'plan, 'output>( &self, stream_id: u64, plans: &[QpackFieldPlan<'plan>], base: QpackFieldSectionBase, table: &QpackDynamicTable<'_, '_>, state: &mut QpackEncoderState<'_, '_>, buffers: QpackFieldSectionEncodeBuffers<'_, 'plan, 'output>, ) -> Result<QpackEncodedFieldSection<'output>, QpackFieldSectionEncodeError>
Encodes one field section, retaining dynamic references only after its bytes are written.
Capacity failures leave both scratch slices unchanged. Later failures can overwrite scratch,
but never modify destination or encoder accounting. Each semantic input needs one plan
slot; plan slots are opaque overwritten scratch and hold no semantic value on return.
Trait Implementations§
Source§impl Clone for QpackFieldSectionEncoder
impl Clone for QpackFieldSectionEncoder
impl Copy for QpackFieldSectionEncoder
Source§impl Debug for QpackFieldSectionEncoder
impl Debug for QpackFieldSectionEncoder
impl Eq for QpackFieldSectionEncoder
Source§impl PartialEq for QpackFieldSectionEncoder
impl PartialEq for QpackFieldSectionEncoder
impl StructuralPartialEq for QpackFieldSectionEncoder
Auto Trait Implementations§
impl Freeze for QpackFieldSectionEncoder
impl RefUnwindSafe for QpackFieldSectionEncoder
impl Send for QpackFieldSectionEncoder
impl Sync for QpackFieldSectionEncoder
impl Unpin for QpackFieldSectionEncoder
impl UnsafeUnpin for QpackFieldSectionEncoder
impl UnwindSafe for QpackFieldSectionEncoder
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