pub enum SesameError {
MissingHeaders,
InvalidVersion,
UnknownKey,
ExpiredTimestamp,
ReplayDetected,
SignatureMismatch,
ScopeDenied,
DecryptFailed,
KeyRevoked,
}Expand description
Every distinct SESAME failure, fail-closed. Each maps 1:1 to a wire error code and HTTP status from Appendix A.7.
NOTE for [BO]: the draft distinguishes sesame_unknown_key from
sesame_signature_mismatch (both 401). That is a mild key-enumeration
oracle and conflicts with the handoff’s “no-leak” goal. We follow the paper
(distinct codes) but expose http_status() so an operator can collapse
them to a single opaque 401 if desired. See reconciliation note item 7.
Variants§
MissingHeaders
InvalidVersion
UnknownKey
ExpiredTimestamp
ReplayDetected
SignatureMismatch
ScopeDenied
DecryptFailed
KeyRevoked
Implementations§
Source§impl SesameError
impl SesameError
Trait Implementations§
Source§impl Clone for SesameError
impl Clone for SesameError
Source§fn clone(&self) -> SesameError
fn clone(&self) -> SesameError
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 moreimpl Copy for SesameError
Source§impl Debug for SesameError
impl Debug for SesameError
Source§impl Display for SesameError
impl Display for SesameError
impl Eq for SesameError
Source§impl Error for SesameError
impl Error for SesameError
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 SesameError
impl PartialEq for SesameError
Source§fn eq(&self, other: &SesameError) -> bool
fn eq(&self, other: &SesameError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SesameError
Auto Trait Implementations§
impl Freeze for SesameError
impl RefUnwindSafe for SesameError
impl Send for SesameError
impl Sync for SesameError
impl Unpin for SesameError
impl UnsafeUnpin for SesameError
impl UnwindSafe for SesameError
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