#[non_exhaustive]pub enum ShimError {
SymbolLoadFailed {
path: OsString,
symbol: String,
err_str: String,
},
NullApi {
path: OsString,
},
ApiTableTooSmall {
path: OsString,
got: u32,
need: u32,
},
IncompatibleAbiVersion {
path: OsString,
got: u32,
need: u32,
},
}Expand description
Errors encountered while loading the C ABI shim.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SymbolLoadFailed
A required symbol could not be loaded from the shim.
Fields
NullApi
The shim returned a null API table pointer.
ApiTableTooSmall
The shim API table is smaller than this crate expects.
Fields
IncompatibleAbiVersion
The shim ABI version does not match this crate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShimError
impl RefUnwindSafe for ShimError
impl Send for ShimError
impl Sync for ShimError
impl Unpin for ShimError
impl UnsafeUnpin for ShimError
impl UnwindSafe for ShimError
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