pub enum PolicyBridgeError {
NoHolderProof,
Did(DidParseError),
}Expand description
Failure to build an authority-bearing policy context from a credential presentation.
The bearer hole is closed at this seam: only a holder-verified presentation
(PresentationVerdict::Valid) yields authority. Every other verdict — and mere
possession of a raw ACDC, which is not even an accepted input — fails closed here, so
capabilities can never enter a decision without proof the presenter controls the
subject AID.
Variants§
NoHolderProof
The presentation did not carry holder proof: it was not PresentationVerdict::Valid,
so no authority-bearing context is produced (fail-closed).
Did(DidParseError)
The verified presentation’s issuer/subject DID failed to parse into the policy domain.
Trait Implementations§
Source§impl Debug for PolicyBridgeError
impl Debug for PolicyBridgeError
Source§impl Display for PolicyBridgeError
impl Display for PolicyBridgeError
Source§impl Error for PolicyBridgeError
impl Error for PolicyBridgeError
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<DidParseError> for PolicyBridgeError
impl From<DidParseError> for PolicyBridgeError
Source§fn from(source: DidParseError) -> Self
fn from(source: DidParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyBridgeError
impl RefUnwindSafe for PolicyBridgeError
impl Send for PolicyBridgeError
impl Sync for PolicyBridgeError
impl Unpin for PolicyBridgeError
impl UnsafeUnpin for PolicyBridgeError
impl UnwindSafe for PolicyBridgeError
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