pub enum AttestationErrorwhere
Self: Send + Sync,{
Show 16 variants
InvalidCose(String),
InvalidCbor(Error),
DocStructureInvalid,
InvalidCoseSignature,
UnexpectedPCRs(String, String),
MissingPCR(usize),
MissingUserData,
UserDataMismatch,
NonceMismatch {
expected: String,
received: Option<String>,
},
MissingModuleId,
DigestAlgorithmInvalid,
InvalidPCRs,
InvalidCABundle,
InvalidPublicKey,
InvalidNonce,
InvalidUserData,
}
Expand description
Wrapping type to record the specific error that occurred while validating the attestation document.
Variants§
InvalidCose(String)
InvalidCbor(Error)
DocStructureInvalid
InvalidCoseSignature
UnexpectedPCRs(String, String)
MissingPCR(usize)
MissingUserData
UserDataMismatch
NonceMismatch
MissingModuleId
DigestAlgorithmInvalid
InvalidPCRs
InvalidCABundle
InvalidPublicKey
InvalidNonce
InvalidUserData
Trait Implementations§
source§impl Error for AttestationErrorwhere
Self: Send + Sync,
impl Error for AttestationErrorwhere Self: Send + Sync,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AttestationError> for AttestErrorwhere
Self: Send + Sync,
impl From<AttestationError> for AttestErrorwhere Self: Send + Sync,
source§fn from(source: AttestationError) -> Self
fn from(source: AttestationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AttestationError
impl Send for AttestationError
impl Sync for AttestationError
impl Unpin for AttestationError
impl !UnwindSafe for AttestationError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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