pub enum HpackRepresentationBuildError {
IndexedFieldZero,
LiteralNameIndexZero,
LiteralName(HpackStringLiteralBuildError),
LiteralValue(HpackStringLiteralBuildError),
TotalLengthOverflow,
BufferTooShort {
required: usize,
available: usize,
},
}Expand description
Failure to build an HPACK header-field representation.
Variants§
IndexedFieldZero
An indexed header field used forbidden index zero.
LiteralNameIndexZero
A literal header field selected indexed-name form with forbidden index zero.
LiteralName(HpackStringLiteralBuildError)
The literal name string could not be built.
LiteralValue(HpackStringLiteralBuildError)
The literal value string could not be built.
TotalLengthOverflow
The sum of representation component lengths overflows usize.
BufferTooShort
The caller buffer cannot contain the complete representation.
Trait Implementations§
impl Copy for HpackRepresentationBuildError
impl Eq for HpackRepresentationBuildError
impl StructuralPartialEq for HpackRepresentationBuildError
Auto Trait Implementations§
impl Freeze for HpackRepresentationBuildError
impl RefUnwindSafe for HpackRepresentationBuildError
impl Send for HpackRepresentationBuildError
impl Sync for HpackRepresentationBuildError
impl Unpin for HpackRepresentationBuildError
impl UnsafeUnpin for HpackRepresentationBuildError
impl UnwindSafe for HpackRepresentationBuildError
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