Enum libloading::error::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.
Fields
desc: DlDescription
The source error.
DlOpenUnknown
The dlopen
call failed and system did not report an error.
DlSym
The dlsym
call failed.
Fields
desc: DlDescription
The source error.
DlSymUnknown
The dlsym
call failed and system did not report an error.
DlClose
The dlclose
call failed.
Fields
desc: DlDescription
The source error.
DlCloseUnknown
The dlclose
call failed and system did not report an error.
LoadLibraryExW
The LoadLibraryW
call failed.
Fields
source: WindowsError
The source error.
LoadLibraryExWUnknown
The LoadLibraryW
call failed and system did not report an error.
GetModuleHandleExW
The GetModuleHandleExW
call failed.
Fields
source: WindowsError
The source error.
GetModuleHandleExWUnknown
The GetModuleHandleExW
call failed and system did not report an error.
GetProcAddress
The GetProcAddress
call failed.
Fields
source: WindowsError
The source error.
GetProcAddressUnknown
The GetProcAddressUnknown
call failed and system did not report an error.
FreeLibrary
The FreeLibrary
call failed.
Fields
source: WindowsError
The source error.
FreeLibraryUnknown
The FreeLibrary
call failed and system did not report an error.
IncompatibleSize
The requested type cannot possibly work.
CreateCString
Could not create a new CString.
CreateCStringWithTrailing
Could not create a new CString from bytes with trailing null.
Fields
source: FromBytesWithNulError
The source error.