pub enum SignatureError {
Missing,
Invalid,
Expired,
}Expand description
Why a signed URL was not accepted.
Separate variants because the two failures deserve different words to the visitor: an expired reset link should offer a new one, an invalid one should not pretend anything is recoverable.
Variants§
Missing
No signature parameter at all.
Invalid
The signature did not match — the URL was edited, or signed elsewhere.
Expired
The signature was good, but the link is past its expires timestamp.
Implementations§
Trait Implementations§
Source§impl Clone for SignatureError
impl Clone for SignatureError
impl Copy for SignatureError
Source§impl Debug for SignatureError
impl Debug for SignatureError
Source§impl Display for SignatureError
impl Display for SignatureError
impl Eq for SignatureError
Source§impl Error for SignatureError
impl Error for SignatureError
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 IntoResponse for SignatureError
Answers 403 — the request was understood and refused, and no amount of
authenticating will change that.
impl IntoResponse for SignatureError
Answers 403 — the request was understood and refused, and no amount of authenticating will change that.
fn into_response(self) -> Response
Source§impl PartialEq for SignatureError
impl PartialEq for SignatureError
impl StructuralPartialEq for SignatureError
Auto Trait Implementations§
impl Freeze for SignatureError
impl RefUnwindSafe for SignatureError
impl Send for SignatureError
impl Sync for SignatureError
impl Unpin for SignatureError
impl UnsafeUnpin for SignatureError
impl UnwindSafe for SignatureError
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