Enum libloading::Error[][src]

#[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
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.
DlOpen

The dlopen call failed.

Fields of DlOpen

desc: DlDescription

The source error.

DlOpenUnknown

The dlopen call failed and system did not report an error.

DlSym

The dlsym call failed.

Fields of DlSym

desc: DlDescription

The source error.

DlSymUnknown

The dlsym call failed and system did not report an error.

DlClose

The dlclose call failed.

Fields of DlClose

desc: DlDescription

The source error.

DlCloseUnknown

The dlclose call failed and system did not report an error.

LoadLibraryExW

The LoadLibraryW call failed.

Fields of LoadLibraryExW

source: WindowsError

The source error.

LoadLibraryExWUnknown

The LoadLibraryW call failed and system did not report an error.

GetModuleHandleExW

The GetModuleHandleExW call failed.

Fields of GetModuleHandleExW

source: WindowsError

The source error.

GetModuleHandleExWUnknown

The GetModuleHandleExW call failed and system did not report an error.

GetProcAddress

The GetProcAddress call failed.

Fields of GetProcAddress

source: WindowsError

The source error.

GetProcAddressUnknown

The GetProcAddressUnknown call failed and system did not report an error.

FreeLibrary

The FreeLibrary call failed.

Fields of FreeLibrary

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.

Fields of CreateCString

source: NulError

The source error.

CreateCStringWithTrailing

Could not create a new CString from bytes with trailing null.

Fields of CreateCStringWithTrailing

source: FromBytesWithNulError

The source error.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.