pub enum ExtractHeaderError {
NoExist {
header_name: &'static str,
},
FailedToStr(ToStrError),
InvalidHeaderValue(Box<dyn Error + Send + Sync>),
}Variants§
Trait Implementations§
Source§impl Debug for ExtractHeaderError
impl Debug for ExtractHeaderError
Source§impl Display for ExtractHeaderError
impl Display for ExtractHeaderError
Source§impl Error for ExtractHeaderError
impl Error for ExtractHeaderError
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 From<DecodeError> for ExtractHeaderError
impl From<DecodeError> for ExtractHeaderError
Source§fn from(value: DecodeError) -> ExtractHeaderError
fn from(value: DecodeError) -> ExtractHeaderError
Converts to this type from the input type.
Source§impl From<Error> for ExtractHeaderError
impl From<Error> for ExtractHeaderError
Source§fn from(e: Error) -> ExtractHeaderError
fn from(e: Error) -> ExtractHeaderError
Converts to this type from the input type.
Source§impl From<ExtractHeaderError> for DigestError
impl From<ExtractHeaderError> for DigestError
Source§fn from(source: ExtractHeaderError) -> DigestError
fn from(source: ExtractHeaderError) -> DigestError
Converts to this type from the input type.
Source§impl From<InvalidContentDigest> for ExtractHeaderError
impl From<InvalidContentDigest> for ExtractHeaderError
Source§fn from(error: InvalidContentDigest) -> ExtractHeaderError
fn from(error: InvalidContentDigest) -> ExtractHeaderError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExtractHeaderError
impl !RefUnwindSafe for ExtractHeaderError
impl Send for ExtractHeaderError
impl Sync for ExtractHeaderError
impl Unpin for ExtractHeaderError
impl UnsafeUnpin for ExtractHeaderError
impl !UnwindSafe for ExtractHeaderError
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