[][src]Enum libloading::Error

#[non_exhaustive]pub enum Error {
    DlOpen {
        desc: DlDescription,
    },
    DlOpenUnknown,
    DlSym {
        desc: DlDescription,
    },
    DlSymUnknown,
    DlClose {
        desc: DlDescription,
    },
    DlCloseUnknown,
    LoadLibraryW {
        source: WindowsError,
    },
    LoadLibraryWUnknown,
    GetModuleHandleExW {
        source: WindowsError,
    },
    GetModuleHandleExWUnknown,
    GetProcAddress {
        source: WindowsError,
    },
    GetProcAddressUnknown,
    FreeLibrary {
        source: WindowsError,
    },
    FreeLibraryUnknown,
    IncompatibleSize,
    CreateCString {
        source: NulError,
    },
    CreateCStringWithTrailing {
        source: FromBytesWithNulError,
    },
}

Errors.

Variants (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.

LoadLibraryW

The LoadLibraryW call failed.

Fields of LoadLibraryW

source: WindowsError

The source error.

LoadLibraryWUnknown

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

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.