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.