#[non_exhaustive]pub enum TranslationError {
UnsupportedOpcode {
pc: usize,
code: u16,
},
InvalidSource(VerifyError),
NoMemory,
ImageTooLarge,
InvalidImage(ImageValidationError),
ProfileUnsupported {
pc: usize,
code: u16,
},
}Expand description
Failure while translating a verified program.
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.
UnsupportedOpcode
InvalidSource(VerifyError)
NoMemory
ImageTooLarge
InvalidImage(ImageValidationError)
ProfileUnsupported
Trait Implementations§
Source§impl Clone for TranslationError
impl Clone for TranslationError
impl Copy for TranslationError
Source§impl Debug for TranslationError
impl Debug for TranslationError
Source§impl Display for TranslationError
impl Display for TranslationError
impl Eq for TranslationError
Source§impl PartialEq for TranslationError
impl PartialEq for TranslationError
impl StructuralPartialEq for TranslationError
Auto Trait Implementations§
impl Forget for TranslationError
impl Freeze for TranslationError
impl RefUnwindSafe for TranslationError
impl Send for TranslationError
impl Sync for TranslationError
impl Unpin for TranslationError
impl UnsafeUnpin for TranslationError
impl UnwindSafe for TranslationError
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