pub enum HpackStringLiteralBuildError {
EncodedLengthNotRepresentable {
encoded_length: usize,
},
TotalLengthOverflow {
length_length: usize,
encoded_length: usize,
},
BufferTooShort {
required: usize,
available: usize,
},
}Expand description
Failure to build an HPACK string literal.
Variants§
EncodedLengthNotRepresentable
The payload length cannot be represented as u64.
TotalLengthOverflow
The length encoding and payload length cannot be added as usize.
Fields
BufferTooShort
The caller buffer cannot contain the complete string literal.
Trait Implementations§
Source§impl Clone for HpackStringLiteralBuildError
impl Clone for HpackStringLiteralBuildError
impl Copy for HpackStringLiteralBuildError
Source§impl Debug for HpackStringLiteralBuildError
impl Debug for HpackStringLiteralBuildError
impl Eq for HpackStringLiteralBuildError
impl StructuralPartialEq for HpackStringLiteralBuildError
Auto Trait Implementations§
impl Freeze for HpackStringLiteralBuildError
impl RefUnwindSafe for HpackStringLiteralBuildError
impl Send for HpackStringLiteralBuildError
impl Sync for HpackStringLiteralBuildError
impl Unpin for HpackStringLiteralBuildError
impl UnsafeUnpin for HpackStringLiteralBuildError
impl UnwindSafe for HpackStringLiteralBuildError
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