pub enum ReportError {
Environment(EnvironmentError),
Fault(FaultError),
CounterOverflow,
EnvelopeTooLarge,
InvalidJson,
Canonicalization,
DigestMismatch,
UnsupportedReportVersion(u16),
UnsupportedEnvelopeVersion(u16),
InvalidReport(&'static str),
}Expand description
Qualification report construction or verification failure.
Variants§
Environment(EnvironmentError)
Environment metadata is invalid.
Fault(FaultError)
Fault evidence is invalid.
CounterOverflow
A counter overflowed.
EnvelopeTooLarge
The serialized envelope exceeds the hard input ceiling.
InvalidJson
JSON is malformed, non-conforming or contains unknown fields.
Canonicalization
Canonical serialization failed.
DigestMismatch
The report digest does not match the canonical report.
UnsupportedReportVersion(u16)
The report schema version is unsupported.
UnsupportedEnvelopeVersion(u16)
The envelope schema version is unsupported.
InvalidReport(&'static str)
A derived or bounded report invariant is invalid.
Trait Implementations§
Source§impl Clone for ReportError
impl Clone for ReportError
Source§impl Debug for ReportError
impl Debug for ReportError
Source§impl Display for ReportError
impl Display for ReportError
impl Eq for ReportError
Source§impl Error for ReportError
impl Error for ReportError
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<EnvironmentError> for ReportError
impl From<EnvironmentError> for ReportError
Source§fn from(source: EnvironmentError) -> Self
fn from(source: EnvironmentError) -> Self
Converts to this type from the input type.
Source§impl From<FaultError> for ReportError
impl From<FaultError> for ReportError
Source§fn from(source: FaultError) -> Self
fn from(source: FaultError) -> Self
Converts to this type from the input type.
Source§impl From<ReportError> for RunError
impl From<ReportError> for RunError
Source§fn from(source: ReportError) -> Self
fn from(source: ReportError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReportError
impl PartialEq for ReportError
impl StructuralPartialEq for ReportError
Auto Trait Implementations§
impl Forget for ReportError
impl Freeze for ReportError
impl Move for ReportError
impl RefUnwindSafe for ReportError
impl Send for ReportError
impl Sync for ReportError
impl Unpin for ReportError
impl UnsafeUnpin for ReportError
impl UnwindSafe for ReportError
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