#[non_exhaustive]pub enum EvidencePackError {
Canonicalize(String),
Decode(String),
OfflineVerification(String),
}Expand description
A typed failure parsing or verifying a compliance evidence pack.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Canonicalize(String)
Canonical serialization (json-canon) failed.
Decode(String)
The pack (or a JSON input) could not be decoded.
OfflineVerification(String)
Offline pack verification failed (tampered KEL, unpinned root, or a transparency proof that did not check out).
Trait Implementations§
Source§impl AuthsErrorInfo for EvidencePackError
impl AuthsErrorInfo for EvidencePackError
Source§fn error_code(&self) -> &'static str
fn error_code(&self) -> &'static str
Returns a unique error code string for this error variant.
Source§fn suggestion(&self) -> Option<&'static str>
fn suggestion(&self) -> Option<&'static str>
Returns an optional actionable suggestion for resolving the error.
Source§impl Debug for EvidencePackError
impl Debug for EvidencePackError
Source§impl Display for EvidencePackError
impl Display for EvidencePackError
Source§impl Error for EvidencePackError
impl Error for EvidencePackError
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()
Auto Trait Implementations§
impl Freeze for EvidencePackError
impl RefUnwindSafe for EvidencePackError
impl Send for EvidencePackError
impl Sync for EvidencePackError
impl Unpin for EvidencePackError
impl UnsafeUnpin for EvidencePackError
impl UnwindSafe for EvidencePackError
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