pub enum Error {
Json(String),
Jcs(String),
Cose(&'static str),
Signature,
Header(&'static str),
Validation(&'static str),
NonCanonicalPayload,
Receipt(&'static str),
}Expand description
Errors returned while parsing, producing, or verifying a statement.
Variants§
Json(String)
JSON parsing or data-model conversion failed.
Jcs(String)
JCS serialization failed.
Cose(&'static str)
The COSE envelope is malformed.
Signature
A signature could not be created or verified.
Header(&'static str)
A protected-header requirement was not met.
Validation(&'static str)
A payload profile requirement was not met.
NonCanonicalPayload
The embedded payload bytes are not their JCS serialization.
Receipt(&'static str)
An attached SCITT Receipt or its inclusion proof is unusable.
Distinct from Self::Signature, which is reserved for a signature
that was checked and did not verify. A relying party needs to tell a
Receipt it could not read from one it read and disbelieved.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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