pub enum ContinuityError {
Reject(RejectReason),
Cose(CoseError),
Cbor(String),
Json(String),
Jws(String),
}Expand description
Any failure while producing or validating continuity state.
Variants§
Reject(RejectReason)
A semantic Verifier or Prover check failed.
Cose(CoseError)
A COSE envelope could not be built, parsed, or verified.
Cbor(String)
CBOR (de)serialization of a payload failed.
Json(String)
JSON (de)serialization of a JSON protocol object failed.
Jws(String)
The JWS envelope of the PIC Token could not be built or parsed.
Trait Implementations§
Source§impl Debug for ContinuityError
impl Debug for ContinuityError
Source§impl Display for ContinuityError
impl Display for ContinuityError
Source§impl Error for ContinuityError
impl Error for ContinuityError
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<CoseError> for ContinuityError
impl From<CoseError> for ContinuityError
Source§fn from(source: CoseError) -> ContinuityError
fn from(source: CoseError) -> ContinuityError
Converts to this type from the input type.
Source§impl From<RejectReason> for ContinuityError
impl From<RejectReason> for ContinuityError
Source§fn from(source: RejectReason) -> ContinuityError
fn from(source: RejectReason) -> ContinuityError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContinuityError
impl RefUnwindSafe for ContinuityError
impl Send for ContinuityError
impl Sync for ContinuityError
impl Unpin for ContinuityError
impl UnsafeUnpin for ContinuityError
impl UnwindSafe for ContinuityError
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