Enum h2::hpack::decoder::DecoderError
source · pub enum DecoderError {
InvalidRepresentation,
InvalidIntegerPrefix,
InvalidTableIndex,
InvalidHuffmanCode,
InvalidUtf8,
InvalidStatusCode,
InvalidPseudoheader,
InvalidMaxDynamicSize,
IntegerOverflow,
NeedMore(NeedMore),
}
Expand description
Represents all errors that can be encountered while performing the decoding of an HPACK header set.
Variants§
InvalidRepresentation
InvalidIntegerPrefix
InvalidTableIndex
InvalidHuffmanCode
InvalidUtf8
InvalidStatusCode
InvalidPseudoheader
InvalidMaxDynamicSize
IntegerOverflow
NeedMore(NeedMore)
Trait Implementations§
source§impl Clone for DecoderError
impl Clone for DecoderError
source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a copy 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 From<DecoderError> for Error
impl From<DecoderError> for Error
source§fn from(src: DecoderError) -> Self
fn from(src: DecoderError) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderName> for DecoderError
impl From<InvalidHeaderName> for DecoderError
source§fn from(_: InvalidHeaderName) -> DecoderError
fn from(_: InvalidHeaderName) -> DecoderError
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for DecoderError
impl From<InvalidHeaderValue> for DecoderError
source§fn from(_: InvalidHeaderValue) -> DecoderError
fn from(_: InvalidHeaderValue) -> DecoderError
Converts to this type from the input type.
source§impl From<InvalidMethod> for DecoderError
impl From<InvalidMethod> for DecoderError
source§fn from(_: InvalidMethod) -> DecoderError
fn from(_: InvalidMethod) -> DecoderError
Converts to this type from the input type.
source§impl From<InvalidStatusCode> for DecoderError
impl From<InvalidStatusCode> for DecoderError
source§fn from(_: InvalidStatusCode) -> DecoderError
fn from(_: InvalidStatusCode) -> DecoderError
Converts to this type from the input type.
source§impl From<Utf8Error> for DecoderError
impl From<Utf8Error> for DecoderError
source§fn from(_: Utf8Error) -> DecoderError
fn from(_: Utf8Error) -> DecoderError
Converts to this type from the input type.
source§impl PartialEq for DecoderError
impl PartialEq for DecoderError
impl Copy for DecoderError
impl Eq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.