[−][src]Enum httlib_hpack::EncoderError
Represents all errors that can be encountered while performing the encoding of an HPACK header set.
Variants
Indicates that the encoder received an invalid ASCII character and is thus unable to perform the (Huffman) encoding. Note that only ASCII characters provided in the HPACK spec should be used.
Indicates that an invalid index was provided. According to the HPACK
specification, the index 0
must be treated as an invalid index number.
The first valid number is 1
.
Indicates that an invalid prefix was provided (must be [1, 8]).
Indicates that the value of the integer being encoded exceeds a certain threshold (5 bytes are chosen by this implementation). This can also happen while encoding too long string.
Trait Implementations
impl Debug for EncoderError
[src]
impl Display for EncoderError
[src]
impl Error for EncoderError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<EncoderError> for EncoderError
[src]
fn from(err: HuffmanError) -> Self
[src]
impl PartialEq<EncoderError> for EncoderError
[src]
fn eq(&self, other: &EncoderError) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for EncoderError
[src]
Auto Trait Implementations
impl RefUnwindSafe for EncoderError
impl Send for EncoderError
impl Sync for EncoderError
impl Unpin for EncoderError
impl UnwindSafe for EncoderError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,