pub enum CustodyError {
UnknownCredential {
credential: CredentialName,
},
KindMismatch {
credential: CredentialName,
kind: CredentialKind,
operation: Operation,
},
OperationNotGranted {
credential: CredentialName,
operation: Operation,
},
ScopeRefused {
credential: CredentialName,
detail: String,
},
RungBelowFloor {
required: Rung,
actual: Rung,
},
Revoked {
credential: CredentialName,
},
BudgetExhausted {
credential: CredentialName,
},
EnvelopeRefused,
EgressFailed {
detail: String,
},
Backend {
detail: String,
},
}Expand description
Typed refusals. Refused reasons are closed so callers can route them;
backend faults carry a message.
Variants§
UnknownCredential
Fields
§
credential: CredentialNameKindMismatch
The declared kind does not support this operation, or the alg does not match the material.
OperationNotGranted
No grant covers this operation for this caller.
ScopeRefused
A narrowable operation’s grant list does not cover the target.
RungBelowFloor
The signed policy requires a rung the credential’s evidence does not reach.
Revoked
Fields
§
credential: CredentialNameBudgetExhausted
Per-credential use budget exhausted (DR-0053 §9).
Fields
§
credential: CredentialNameEnvelopeRefused
AEAD refused the envelope: wrong context, wrong credential, or tampered ciphertext. Deliberately one variant — AEAD cannot say which.
EgressFailed
The egress or exchange failed at the network layer.
Backend
Custodian-side fault.
Trait Implementations§
Source§impl Clone for CustodyError
impl Clone for CustodyError
Source§fn clone(&self) -> CustodyError
fn clone(&self) -> CustodyError
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 CustodyError
impl Debug for CustodyError
Source§impl<'de> Deserialize<'de> for CustodyError
impl<'de> Deserialize<'de> for CustodyError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CustodyError
impl Display for CustodyError
impl Eq for CustodyError
Source§impl PartialEq for CustodyError
impl PartialEq for CustodyError
Source§impl Serialize for CustodyError
impl Serialize for CustodyError
impl StructuralPartialEq for CustodyError
Auto Trait Implementations§
impl Freeze for CustodyError
impl RefUnwindSafe for CustodyError
impl Send for CustodyError
impl Sync for CustodyError
impl Unpin for CustodyError
impl UnsafeUnpin for CustodyError
impl UnwindSafe for CustodyError
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