pub enum AbiError {
Show 13 variants
UnsupportedPointerWidth {
bits: u16,
},
BadMagic {
found: u64,
},
UnsupportedAbiVersion {
found: u32,
},
NonZeroFlags {
flags: u32,
},
NullBytecode,
EmptyBytecode,
NullUnits,
EmptyUnits,
LengthOverflow,
UnsortedUnits {
previous_module_id: u32,
previous_function_id: u32,
module_id: u32,
function_id: u32,
},
DuplicateFunction {
module_id: u32,
function_id: u32,
},
EntryFunctionMissing {
module_id: u32,
function_id: u32,
},
UnknownFunction {
module_id: u32,
function_id: u32,
},
}Expand description
A typed AOT/entry-linkage failure.
Variants§
UnsupportedPointerWidth
The target pointer width is not 64-bit.
BadMagic
The descriptor magic did not match AOT_MAGIC.
UnsupportedAbiVersion
The descriptor ABI version is not AOT_ABI_VERSION.
NonZeroFlags
A reserved flags field was non-zero.
NullBytecode
The bytecode pointer was null with a non-zero length.
EmptyBytecode
The bytecode image was empty.
NullUnits
The unit pointer was null with a non-zero count.
EmptyUnits
The unit table was empty.
LengthOverflow
A slice extent overflowed isize::MAX.
UnsortedUnits
Unit identities are not sorted by (module_id, function_id).
Fields
DuplicateFunction
Two units shared a (module_id, function_id) identity.
EntryFunctionMissing
The declared tuple entry was absent from the unit table.
UnknownFunction
NativeEntryTable::invoke was asked for an unknown function identity.
Trait Implementations§
impl Copy for AbiError
impl Eq for AbiError
Source§impl Error for AbiError
impl Error for AbiError
1.30.0 · 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()
impl StructuralPartialEq for AbiError
Auto Trait Implementations§
impl Freeze for AbiError
impl RefUnwindSafe for AbiError
impl Send for AbiError
impl Sync for AbiError
impl Unpin for AbiError
impl UnsafeUnpin for AbiError
impl UnwindSafe for AbiError
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