pub enum StandingError {
Verify(VerifyError),
PeerKeyMismatch,
Superseded {
device: DeviceId,
newest: u64,
offered: u64,
},
Revoked {
jti: String,
},
DeviceRevoked {
device: DeviceId,
},
Lease(LeaseError),
Store(StoreError),
}Expand description
Why StandingVerifier::verify_standing_at refused a binding. Collapse to
one refusal on the wire; the variants are for logs and audit.
Variants§
Verify(VerifyError)
Not a standing binding signed for the trusted issuer: bad signature, an access token or other artifact offered as one, a non-issuer-role key, a foreign issuer.
PeerKeyMismatch
Genuine, but it names a different node key than the peer proved.
Superseded
A newer binding for the same device exists.
Revoked
The binding’s own jti is in the revocation set.
DeviceRevoked
The binding’s device is in the revocation set.
Lease(LeaseError)
Signed, but its lease breaks the invariant (cheers_core::Lease).
Store(StoreError)
The revocation reader failed.
Trait Implementations§
Source§impl Debug for StandingError
impl Debug for StandingError
Source§impl Display for StandingError
impl Display for StandingError
Source§impl Error for StandingError
impl Error for StandingError
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<LeaseError> for StandingError
impl From<LeaseError> for StandingError
Source§fn from(source: LeaseError) -> Self
fn from(source: LeaseError) -> Self
Converts to this type from the input type.
Source§impl From<StandingError> for AdmitError
impl From<StandingError> for AdmitError
Source§fn from(source: StandingError) -> Self
fn from(source: StandingError) -> Self
Converts to this type from the input type.
Source§impl From<StoreError> for StandingError
impl From<StoreError> for StandingError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<VerifyError> for StandingError
impl From<VerifyError> for StandingError
Source§fn from(source: VerifyError) -> Self
fn from(source: VerifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StandingError
impl RefUnwindSafe for StandingError
impl Send for StandingError
impl Sync for StandingError
impl Unpin for StandingError
impl UnsafeUnpin for StandingError
impl UnwindSafe for StandingError
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