#[non_exhaustive]pub enum DecoderError {
HeaderIndexOutOfBounds,
IntegerDecodingError(IntegerDecodingError),
StringDecodingError(StringDecodingError),
InvalidMaxDynamicSize,
SizeUpdateAtEnd,
}Expand description
Represents all errors that can be encountered while performing the decoding of an HPACK header set.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HeaderIndexOutOfBounds
IntegerDecodingError(IntegerDecodingError)
StringDecodingError(StringDecodingError)
InvalidMaxDynamicSize
The size of the dynamic table can never be allowed to exceed the max size mandated to the decoder by the protocol. (by performing changes made by SizeUpdate blocks).
SizeUpdateAtEnd
A header block cannot end with a dynamic table size update, it must be treating as a decoding error.
Trait Implementations§
Source§impl Clone for DecoderError
impl Clone for DecoderError
Source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display 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<E> From<DecoderError> for DecoderOrCallbackError<E>
impl<E> From<DecoderError> for DecoderOrCallbackError<E>
Source§fn from(err: DecoderError) -> Self
fn from(err: DecoderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DecoderError
impl PartialEq for DecoderError
impl Copy 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 UnwindSafe for DecoderError
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