[][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,
    GetProcAddress {
        source: WindowsError,
    },
    GetProcAddressUnknown,
    FreeLibrary {
        source: WindowsError,
    },
    FreeLibraryUnknown,
    IncompatibleSize,
    CreateCString {
        source: NulError,
    },
    CreateCStringWithTrailing {
        source: FromBytesWithNulError,
    },
}

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
DlOpenUnknown

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

DlSym

The dlsym call failed.

Fields of DlSym

desc: DlDescription
DlSymUnknown

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

DlClose

The dlclose call failed.

Fields of DlClose

desc: DlDescription
DlCloseUnknown

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

LoadLibraryW

The LoadLibraryW call failed.

Fields of LoadLibraryW

source: WindowsError
LoadLibraryWUnknown

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

GetProcAddress

The GetProcAddress call failed.

Fields of GetProcAddress

source: WindowsError
GetProcAddressUnknown

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

FreeLibrary

The FreeLibrary call failed.

Fields of FreeLibrary

source: WindowsError
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
CreateCStringWithTrailing

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

Fields of CreateCStringWithTrailing

source: FromBytesWithNulError

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

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

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.