#[non_exhaustive]pub enum ImageValidationError {
Show 27 variants
NoMemory,
Empty,
TooLong {
length: usize,
},
UnsupportedOpcode {
pc: usize,
code: u16,
},
ImmediateDivisionByZero {
pc: usize,
},
ImmediateShiftOutOfRange {
pc: usize,
shift: u32,
},
ScratchOutOfRange {
pc: usize,
index: u32,
},
ScratchUninitialized {
pc: usize,
index: u32,
},
JumpOutOfRange {
pc: usize,
},
MissingFinalReturn,
InvalidEntry {
entry: u32,
},
InvalidBoundary {
index: usize,
},
BoundaryOutOfBounds {
index: usize,
},
InvalidRecordLength {
index: usize,
len: u32,
},
SourceMapMismatch {
index: usize,
},
MissingBranchSite {
pc: usize,
},
BranchSiteMismatch {
pc: usize,
},
BranchOutOfBounds {
pc: usize,
},
IndirectControlFlow,
RelocationOutOfBounds {
index: usize,
},
UnexpectedRelocation {
index: usize,
},
ImageTooLarge {
size: usize,
},
ProfileUnsupported {
pc: usize,
code: u16,
},
NativeDecode {
offset: usize,
},
NativeSemanticMismatch {
pc: usize,
offset: usize,
},
NativeTargetMismatch {
pc: usize,
},
NativeTrailingBytes {
offset: usize,
},
}Expand description
Failure found by the independent translation validator.
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.
NoMemory
Empty
TooLong
UnsupportedOpcode
ImmediateDivisionByZero
ImmediateShiftOutOfRange
ScratchOutOfRange
ScratchUninitialized
JumpOutOfRange
MissingFinalReturn
InvalidEntry
InvalidBoundary
BoundaryOutOfBounds
InvalidRecordLength
SourceMapMismatch
MissingBranchSite
BranchSiteMismatch
BranchOutOfBounds
IndirectControlFlow
RelocationOutOfBounds
UnexpectedRelocation
ImageTooLarge
ProfileUnsupported
NativeDecode
The immutable native image contains an instruction outside the restricted x86_64 subset emitted by this crate.
NativeSemanticMismatch
A decoded native instruction does not implement the source operation at this program counter.
NativeTargetMismatch
A native direct branch does not target the source block or runtime failure/epilogue block required by the source program.
NativeTrailingBytes
Native bytes remain after the independently validated epilogue.
Trait Implementations§
Source§impl Clone for ImageValidationError
impl Clone for ImageValidationError
impl Copy for ImageValidationError
Source§impl Debug for ImageValidationError
impl Debug for ImageValidationError
Source§impl Display for ImageValidationError
impl Display for ImageValidationError
impl Eq for ImageValidationError
Source§impl PartialEq for ImageValidationError
impl PartialEq for ImageValidationError
impl StructuralPartialEq for ImageValidationError
Auto Trait Implementations§
impl Forget for ImageValidationError
impl Freeze for ImageValidationError
impl RefUnwindSafe for ImageValidationError
impl Send for ImageValidationError
impl Sync for ImageValidationError
impl Unpin for ImageValidationError
impl UnsafeUnpin for ImageValidationError
impl UnwindSafe for ImageValidationError
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