Enum wasmer_object::ObjectError
source · [−]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
UnknownEndianness
The object was provided an unknown endianness
Write(ObjectWriteError)
The object was provided a not-supported architecture
Trait Implementations
sourceimpl Debug for ObjectError
impl Debug for ObjectError
sourceimpl Display for ObjectError
impl Display for ObjectError
sourceimpl Error for ObjectError
impl Error for ObjectError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for ObjectError
impl From<Error> for ObjectError
sourcefn from(source: ObjectWriteError) -> Self
fn from(source: ObjectWriteError) -> Self
Converts to this type from the input type.
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.
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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer