pub enum ObjectError {
UnsupportedBinaryFormat(String),
UnsupportedArchitecture(String),
UnknownEndianness,
Write(Error),
Serialize(SerializeError),
}
Expand description
The Object error can occur when creating an object file
from a Compilation
.
Variants§
UnsupportedBinaryFormat(String)
The object was provided a not-supported binary format
UnsupportedArchitecture(String)
The object was provided a not-supported architecture
UnknownEndianness
The object was provided an unknown endianness
Write(Error)
The object was provided a not-supported architecture
Serialize(SerializeError)
The module provided could not be serialized into bytes
Trait Implementations§
Source§impl Debug for ObjectError
impl Debug for ObjectError
Source§impl Display for ObjectError
impl Display for ObjectError
Source§impl Error for ObjectError
impl Error for ObjectError
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 ObjectError
impl From<Error> for ObjectError
Source§fn from(source: ObjectWriteError) -> Self
fn from(source: ObjectWriteError) -> Self
Converts to this type from the input type.
Source§impl From<SerializeError> for ObjectError
impl From<SerializeError> for ObjectError
Source§fn from(source: SerializeError) -> Self
fn from(source: SerializeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ObjectError
impl !RefUnwindSafe for ObjectError
impl Send for ObjectError
impl Sync for ObjectError
impl Unpin for ObjectError
impl !UnwindSafe for ObjectError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.