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

Fields

desc: DlDescription

The source error.

The dlopen call failed.

DlOpenUnknown

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

DlSym

Fields

desc: DlDescription

The source error.

The dlsym call failed.

DlSymUnknown

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

DlClose

Fields

desc: DlDescription

The source error.

The dlclose call failed.

DlCloseUnknown

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

LoadLibraryExW

Fields

source: WindowsError

The source error.

The LoadLibraryW call failed.

LoadLibraryExWUnknown

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

GetModuleHandleExW

Fields

source: WindowsError

The source error.

The GetModuleHandleExW call failed.

GetModuleHandleExWUnknown

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

GetProcAddress

Fields

source: WindowsError

The source error.

The GetProcAddress call failed.

GetProcAddressUnknown

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

FreeLibrary

Fields

source: WindowsError

The source error.

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

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.