pub enum ArtifactError {
Undeclared(String),
ImportDefined(String),
RelocateImport(String),
IncompatibleDeclaration {
old: Decl,
new: Decl,
},
DuplicateDefinition(String),
InvalidZeroInit(DefinedDecl),
NonSectionCustomSymbols(DefinedDecl, BTreeMap<String, u64>),
UnsupportedBinaryFormat(BinaryFormat),
UndefinedSymbols(Vec<String>),
Goblin(Error),
Io(Error),
}Expand description
ArtifactError exportet from the faerie crate The kinds of errors that can befall someone creating an Artifact
Variants§
Undeclared(String)
Undeclarated symbolic reference
ImportDefined(String)
Attempt to define an undefined import
RelocateImport(String)
Attempt to use a relocation inside an import
IncompatibleDeclaration
An incompatble declaration occurred, please see the absorb method on Decl
DuplicateDefinition(String)
A duplicate definition
InvalidZeroInit(DefinedDecl)
ZeroInit is only allowed for data
NonSectionCustomSymbols(DefinedDecl, BTreeMap<String, u64>)
A non section declaration got custom symbols during definition.
UnsupportedBinaryFormat(BinaryFormat)
Artifact created with a binary format not supported by Faerie
UndefinedSymbols(Vec<String>)
Artifact contained symbols which were declared but not defined
Goblin(Error)
Output of ELF format encountered error from goblin crate
Io(Error)
Io error writing Artifact
Trait Implementations§
Source§impl Debug for ArtifactError
impl Debug for ArtifactError
Source§impl Display for ArtifactError
impl Display for ArtifactError
Source§impl Error for ArtifactError
impl Error for ArtifactError
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<Error> for ArtifactError
impl From<Error> for ArtifactError
Source§fn from(source: Error) -> ArtifactError
fn from(source: Error) -> ArtifactError
Converts to this type from the input type.
Source§impl From<Error> for ArtifactError
impl From<Error> for ArtifactError
Source§fn from(source: Error) -> ArtifactError
fn from(source: Error) -> ArtifactError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArtifactError
impl !RefUnwindSafe for ArtifactError
impl Send for ArtifactError
impl Sync for ArtifactError
impl Unpin for ArtifactError
impl !UnwindSafe for ArtifactError
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