pub enum PublicAuthError {
InvalidOrExpired,
TemporaryProblem,
}Expand description
The single public authentication failure response (INV-8, RFC-012 §14.3).
All internal failure states — not found, expired, revoked, already used,
purpose mismatch, binding mismatch, scope mismatch — collapse to
InvalidOrExpiredCode. This prevents enumeration attacks by ensuring the
caller cannot distinguish record existence from expiry from prior use.
Variants§
InvalidOrExpired
The credential (code, token, session) was not accepted. The reason is intentionally omitted from this type; internal diagnostics use the richer internal error layer.
TemporaryProblem
A transient storage failure prevented the operation. The credential may or may not have been consumed; the host should not retry automatically.
Trait Implementations§
Source§impl Clone for PublicAuthError
impl Clone for PublicAuthError
Source§fn clone(&self) -> PublicAuthError
fn clone(&self) -> PublicAuthError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PublicAuthError
impl Debug for PublicAuthError
Source§impl Display for PublicAuthError
impl Display for PublicAuthError
impl Eq for PublicAuthError
Source§impl Error for PublicAuthError
impl Error for PublicAuthError
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 PartialEq for PublicAuthError
impl PartialEq for PublicAuthError
Source§fn eq(&self, other: &PublicAuthError) -> bool
fn eq(&self, other: &PublicAuthError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PublicAuthError
Auto Trait Implementations§
impl Freeze for PublicAuthError
impl RefUnwindSafe for PublicAuthError
impl Send for PublicAuthError
impl Sync for PublicAuthError
impl Unpin for PublicAuthError
impl UnsafeUnpin for PublicAuthError
impl UnwindSafe for PublicAuthError
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