Enum sharedlib::SharedlibError []

pub enum SharedlibError {
    LibraryClose(LibraryClose),
    LibraryFindSymbol(LibraryFindSymbol),
    LibraryOpen(LibraryOpen),
    OsError(OsError),
    OsErrorFailure(OsErrorFailure),
}

An error returned when a function in sharedlib fails. Other errors are wrapped in this enum before being returned.

Variants

LibraryClose(LibraryClose)

Wraps a LibraryClose error in a SharedlibError.

LibraryFindSymbol(LibraryFindSymbol)

Wraps a LibraryFindSymbol error in a SharedlibError.

LibraryOpen(LibraryOpen)

Wraps a LibraryOpen error in a SharedlibError.

OsError(OsError)

Wraps a OsError error in a SharedlibError.

OsErrorFailure(OsErrorFailure)

Wraps a OsErrorFailure error in a SharedlibError.

Trait Implementations

impl Debug for SharedlibError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for SharedlibError

fn fmt(&self, _f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for SharedlibError

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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

impl From<LibraryClose> for SharedlibError

fn from(error: LibraryClose) -> SharedlibError

Performs the conversion.

impl From<LibraryFindSymbol> for SharedlibError

fn from(error: LibraryFindSymbol) -> SharedlibError

Performs the conversion.

impl From<LibraryOpen> for SharedlibError

fn from(error: LibraryOpen) -> SharedlibError

Performs the conversion.

impl From<OsError> for SharedlibError

fn from(error: OsError) -> SharedlibError

Performs the conversion.

impl From<OsErrorFailure> for SharedlibError

fn from(error: OsErrorFailure) -> SharedlibError

Performs the conversion.