#[non_exhaustive]pub enum MeasurementReportError {
Show 13 variants
MissingOutputVersion,
UnsupportedOutputVersion {
found: u32,
},
WrongOutputIdentity,
MissingCommand,
UnsupportedCommand {
command: String,
},
UnknownOutputField {
field: String,
},
MissingTool,
MissingFiles,
TooManyFiles {
found: usize,
limit: usize,
},
MissingPredictionFacetSummary,
UnexpectedPredictionFacetSummary,
PredictionFacetSummaryMismatch,
File {
file_index: usize,
source: MeasurementFileError,
},
}Expand description
A typed measurement-report subset failed current-contract validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingOutputVersion
The outer envelope omitted its version.
UnsupportedOutputVersion
The outer envelope uses an unsupported version.
WrongOutputIdentity
The outer envelope does not carry the immutable current identity.
MissingCommand
The outer envelope omitted its command.
UnsupportedCommand
The outer envelope belongs to a command without file measurements.
UnknownOutputField
A current output-v10 envelope carried a field outside its closed schema.
MissingTool
A current output-v10 envelope omitted its producer metadata.
MissingFiles
The outer envelope omitted its file array.
TooManyFiles
The outer envelope exceeds the immutable file-record bound.
MissingPredictionFacetSummary
A lint report omitted the derived prediction-facet summary.
UnexpectedPredictionFacetSummary
A measure report carried a lint-only prediction-facet summary.
PredictionFacetSummaryMismatch
Derived prediction-facet totals did not match the lint summary.
File
One file record failed validation.
Fields
source: MeasurementFileErrorTyped record-validation failure.
Implementations§
Source§impl MeasurementReportError
impl MeasurementReportError
Sourcepub fn file_index(&self) -> Option<usize>
pub fn file_index(&self) -> Option<usize>
Zero-based file index for an error in one report record.
Envelope-level errors return None.
Trait Implementations§
Source§impl Clone for MeasurementReportError
impl Clone for MeasurementReportError
Source§fn clone(&self) -> MeasurementReportError
fn clone(&self) -> MeasurementReportError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MeasurementReportError
impl Debug for MeasurementReportError
Source§impl Display for MeasurementReportError
impl Display for MeasurementReportError
impl Eq for MeasurementReportError
Source§impl Error for MeasurementReportError
impl Error for MeasurementReportError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()