#[non_exhaustive]pub enum TargetCompileError {
InvalidArtifact(String),
Unsupported(String),
Emission(String),
ModuleBundle(String),
Payload(CompileError),
}Expand description
Failure produced by a registered target compiler facet.
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.
InvalidArtifact(String)
The neutral artifact could not be decoded into selected modules.
Unsupported(String)
The target cannot represent one selected module or ABI contract.
Emission(String)
Verified target lowering or emission failed.
ModuleBundle(String)
Canonical target-module bundle encoding or decoding failed.
Payload(CompileError)
The emitted payload violated the canonical payload contract.
Trait Implementations§
Source§impl Debug for TargetCompileError
impl Debug for TargetCompileError
Source§impl Display for TargetCompileError
impl Display for TargetCompileError
Source§impl Error for TargetCompileError
impl Error for TargetCompileError
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<CompileError> for TargetCompileError
impl From<CompileError> for TargetCompileError
Source§fn from(source: CompileError) -> Self
fn from(source: CompileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TargetCompileError
impl RefUnwindSafe for TargetCompileError
impl Send for TargetCompileError
impl Sync for TargetCompileError
impl Unpin for TargetCompileError
impl UnsafeUnpin for TargetCompileError
impl UnwindSafe for TargetCompileError
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