Enum libloading::Error
source · [−]#[non_exhaustive]
pub enum Error {
Show 17 variants
DlOpen {
desc: DlDescription,
},
DlOpenUnknown,
DlSym {
desc: DlDescription,
},
DlSymUnknown,
DlClose {
desc: DlDescription,
},
DlCloseUnknown,
LoadLibraryExW {
source: WindowsError,
},
LoadLibraryExWUnknown,
GetModuleHandleExW {
source: WindowsError,
},
GetModuleHandleExWUnknown,
GetProcAddress {
source: WindowsError,
},
GetProcAddressUnknown,
FreeLibrary {
source: WindowsError,
},
FreeLibraryUnknown,
IncompatibleSize,
CreateCString {
source: NulError,
},
CreateCStringWithTrailing {
source: FromBytesWithNulError,
},
}
Expand description
Errors.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
DlOpen
The dlopen
call failed.
DlOpenUnknown
The dlopen
call failed and system did not report an error.
DlSym
The dlsym
call failed.
DlSymUnknown
The dlsym
call failed and system did not report an error.
DlClose
The dlclose
call failed.
DlCloseUnknown
The dlclose
call failed and system did not report an error.
LoadLibraryExW
The LoadLibraryW
call failed.
LoadLibraryExWUnknown
The LoadLibraryW
call failed and system did not report an error.
GetModuleHandleExW
The GetModuleHandleExW
call failed.
GetModuleHandleExWUnknown
The GetModuleHandleExW
call failed and system did not report an error.
GetProcAddress
The GetProcAddress
call failed.
GetProcAddressUnknown
The GetProcAddressUnknown
call failed and system did not report an error.
FreeLibrary
The FreeLibrary
call failed.
FreeLibraryUnknown
The FreeLibrary
call failed and system did not report an error.
IncompatibleSize
The requested type cannot possibly work.
CreateCString
Fields
source: NulError
The source error.
Could not create a new CString.
CreateCStringWithTrailing
Fields
source: FromBytesWithNulError
The source error.
Could not create a new CString from bytes with trailing null.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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>
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
use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more