pub enum DecoderError {
Truncated,
IntegerOverflow,
InvalidIndex,
Huffman(HuffmanError),
TableSizeTooLarge,
SizeUpdateNotAtStart,
TooManySizeUpdates,
SizeUpdateAtEnd,
}Expand description
Why a header block could not be decoded. Every variant is a connection error of type COMPRESSION_ERROR (RFC 9113 §4.3).
Variants§
Truncated
The block ends inside an integer or a string.
IntegerOverflow
An integer takes more than five octets (RFC 7541 §5.1).
InvalidIndex
Index 0, or an index past the static and dynamic tables (§2.3.3).
Huffman(HuffmanError)
A Huffman string is invalid (§5.2).
TableSizeTooLarge
A size update exceeds the advertised SETTINGS_HEADER_TABLE_SIZE
(§6.3).
SizeUpdateNotAtStart
A size update follows a field in the same block (§4.2).
TooManySizeUpdates
More than two size updates open the block (§4.2).
SizeUpdateAtEnd
The block ends with a size update.
Trait Implementations§
Source§impl Clone for DecoderError
impl Clone for DecoderError
impl Copy for DecoderError
Source§impl Debug for DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display for DecoderError
impl Eq for DecoderError
Source§impl Error for DecoderError
impl Error for DecoderError
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()
Source§impl PartialEq for DecoderError
impl PartialEq for DecoderError
impl StructuralPartialEq for DecoderError
Auto Trait Implementations§
impl Freeze for DecoderError
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnsafeUnpin for DecoderError
impl UnwindSafe for DecoderError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.