pub enum Error {
NullCharacter(NulError),
OpeningLibraryError(IoError),
SymbolGettingError(IoError),
NullSymbol,
AddrNotMatchingDll(IoError),
}Expand description
This is a library-specific error that is returned by all calls to all APIs.
Variants
NullCharacter(NulError)
Provided string could not be coverted into std::ffi::CString because it contained null
character.
OpeningLibraryError(IoError)
The library could not be opened.
SymbolGettingError(IoError)
The symbol could not be obtained.
NullSymbol
Value of the symbol was null.
AddrNotMatchingDll(IoError)
Address could not be matched to a dynamic link library
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn ErrorTrait + 'static)>
fn source(&self) -> Option<&(dyn ErrorTrait + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more