pub enum QpackFieldSectionEncodeError {
ReferenceCountOverflow,
ReferenceScratchTooShort {
required: usize,
available: usize,
},
FieldPlanScratchTooShort {
required: usize,
available: usize,
},
Plan(QpackFieldSectionPlanError),
RequiredInsertCountOverflow {
absolute_index: u64,
},
BaseExceedsInsertCount {
base: u64,
insert_count: u64,
},
RequiredInsertCountEncoding(QpackFieldSectionContextError),
PrefixPlanning(QpackFieldSectionPrefixBuildError),
OutputLengthOverflow,
DestinationTooShort {
required: usize,
available: usize,
},
EncoderStateReservation(QpackEncoderStateError),
}Expand description
Failure to encode one QPACK field section.
Variants§
ReferenceCountOverflow
Counting dynamic-reference occurrences overflowed usize.
ReferenceScratchTooShort
The caller supplied too little reference scratch.
Fields
FieldPlanScratchTooShort
The caller supplied too little retained field-plan scratch.
Plan(QpackFieldSectionPlanError)
One semantic field plan is invalid.
RequiredInsertCountOverflow
Adding one to the largest dynamic absolute index overflowed u64.
BaseExceedsInsertCount
The explicit Base is greater than the dynamic table insert count.
RequiredInsertCountEncoding(QpackFieldSectionContextError)
Required Insert Count context encoding failed.
PrefixPlanning(QpackFieldSectionPrefixBuildError)
Prefix wire planning failed.
OutputLengthOverflow
Summing the complete output length overflowed usize.
DestinationTooShort
The destination is too short for the complete field section.
EncoderStateReservation(QpackEncoderStateError)
Encoder accounting could not reserve the dynamic references.
Implementations§
Source§impl QpackFieldSectionEncodeError
impl QpackFieldSectionEncodeError
Sourcepub const fn is_provisioning_error(self) -> bool
pub const fn is_provisioning_error(self) -> bool
Returns whether this failure is caused by insufficient caller-owned scratch or output storage.
Trait Implementations§
Source§impl Clone for QpackFieldSectionEncodeError
impl Clone for QpackFieldSectionEncodeError
impl Copy for QpackFieldSectionEncodeError
Source§impl Debug for QpackFieldSectionEncodeError
impl Debug for QpackFieldSectionEncodeError
impl Eq for QpackFieldSectionEncodeError
Source§impl Error for QpackFieldSectionEncodeError
impl Error for QpackFieldSectionEncodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for QpackFieldSectionEncodeError
Auto Trait Implementations§
impl Freeze for QpackFieldSectionEncodeError
impl RefUnwindSafe for QpackFieldSectionEncodeError
impl Send for QpackFieldSectionEncodeError
impl Sync for QpackFieldSectionEncodeError
impl Unpin for QpackFieldSectionEncodeError
impl UnsafeUnpin for QpackFieldSectionEncodeError
impl UnwindSafe for QpackFieldSectionEncodeError
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