pub enum PrepareVerifyError {
Missing,
Expired(String),
ParseField(&'static str),
Header(ToStrError),
Required(RequiredError),
}
Expand description
An error when preparing to verify a request
Variants§
Missing
Header is missing
Expired(String)
Header is expired
ParseField(&'static str)
Couldn’t parse required field
Header(ToStrError)
An error converting the header to a string for validation
Required(RequiredError)
Required headers were missing from request
Trait Implementations§
source§impl Debug for PrepareVerifyError
impl Debug for PrepareVerifyError
source§impl Display for PrepareVerifyError
impl Display for PrepareVerifyError
source§impl Error for PrepareVerifyError
impl Error for PrepareVerifyError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<PrepareVerifyError> for PrepareVerifyError
impl From<PrepareVerifyError> for PrepareVerifyError
source§fn from(e: PrepareVerifyError) -> Self
fn from(e: PrepareVerifyError) -> Self
Converts to this type from the input type.
source§impl From<RequiredError> for PrepareVerifyError
impl From<RequiredError> for PrepareVerifyError
source§fn from(source: RequiredError) -> Self
fn from(source: RequiredError) -> Self
Converts to this type from the input type.
source§impl From<ToStrError> for PrepareVerifyError
impl From<ToStrError> for PrepareVerifyError
source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PrepareVerifyError
impl RefUnwindSafe for PrepareVerifyError
impl Send for PrepareVerifyError
impl Sync for PrepareVerifyError
impl Unpin for PrepareVerifyError
impl UnwindSafe for PrepareVerifyError
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more