#[non_exhaustive]pub enum MeasurementReportError {
MissingOutputVersion,
UnsupportedOutputVersion {
found: u32,
},
WrongOutputIdentity,
MissingCommand,
UnsupportedCommand {
command: String,
},
MissingFiles,
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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
MissingFiles
The outer envelope omitted its file array.
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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)>
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 PartialEq for MeasurementReportError
impl PartialEq for MeasurementReportError
impl StructuralPartialEq for MeasurementReportError
Auto Trait Implementations§
impl Freeze for MeasurementReportError
impl RefUnwindSafe for MeasurementReportError
impl Send for MeasurementReportError
impl Sync for MeasurementReportError
impl Unpin for MeasurementReportError
impl UnsafeUnpin for MeasurementReportError
impl UnwindSafe for MeasurementReportError
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