pub enum AdmitError {
Signature(CodecError),
Invalid(KnockError),
Expired {
exp: i64,
},
WrongAuthority {
expected: String,
got: String,
},
NoSnapshot {
kind: String,
id: String,
},
Snapshot(SnapshotError),
Standing(StandingError),
NotAnApprover {
approver: PrincipalId,
kind: String,
id: String,
},
Revoked {
jti: String,
},
PolicyRefused {
jti: String,
reason: AdmissionRefusal,
},
Store(StoreError),
}Expand description
Why an approver or an Admit was refused.
Variants§
Signature(CodecError)
Bad signature, wrong artifact kind, or a signer that is not a key.
Invalid(KnockError)
Decoded, but breaks an artifact invariant (lease, key principals).
Expired
Past its lease’s exp.
WrongAuthority
Checked under an issuer this edge does not trust.
NoSnapshot
This edge holds no snapshot of the resource.
Snapshot(SnapshotError)
The held snapshot no longer verifies (superseded, revocation key).
Standing(StandingError)
The approver’s standing binding was refused.
NotAnApprover
The key has no issuer-rooted path to the admit ability on the resource.
Revoked
The admit’s own jti is revoked (refused at reconciliation).
PolicyRefused
The admission policy held now does not permit this admit: the mode,
a confirmation below the relation’s minimum, or a lease past the
path maximum (cheers_core::evaluate_admit).
Store(StoreError)
Trait Implementations§
Source§impl Debug for AdmitError
impl Debug for AdmitError
Source§impl Display for AdmitError
impl Display for AdmitError
Source§impl Error for AdmitError
impl Error for AdmitError
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<CodecError> for AdmitError
impl From<CodecError> for AdmitError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<KnockError> for AdmitError
impl From<KnockError> for AdmitError
Source§fn from(source: KnockError) -> Self
fn from(source: KnockError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotError> for AdmitError
impl From<SnapshotError> for AdmitError
Source§fn from(source: SnapshotError) -> Self
fn from(source: SnapshotError) -> 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 AdmitError
impl From<StoreError> for AdmitError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Converts to this type from the input type.
Source§impl From<VerifyError> for AdmitError
impl From<VerifyError> for AdmitError
Source§fn from(e: VerifyError) -> Self
fn from(e: VerifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AdmitError
impl !UnwindSafe for AdmitError
impl Freeze for AdmitError
impl Send for AdmitError
impl Sync for AdmitError
impl Unpin for AdmitError
impl UnsafeUnpin for AdmitError
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