Enum wasmer_object::ObjectError [−][src]
pub enum ObjectError { UnsupportedBinaryFormat(String), UnsupportedArchitecture(String), UnknownEndianness, Write(ObjectWriteError), }
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
The object was provided an unknown endianness
Write(ObjectWriteError)
The object was provided a not-supported architecture
Trait Implementations
impl Debug for ObjectError
[src]
impl Debug for ObjectError
[src]impl Display for ObjectError
[src]
impl Display for ObjectError
[src]impl Error for ObjectError
[src]
impl Error for ObjectError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<Error> for ObjectError
[src]
impl From<Error> for ObjectError
[src]fn from(source: ObjectWriteError) -> Self
[src]
fn from(source: ObjectWriteError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ObjectError
impl Send for ObjectError
impl Sync for ObjectError
impl Unpin for ObjectError
impl UnwindSafe for ObjectError
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more