pub enum LoaderError {
Io(Error),
Load(Error),
InvalidSymbol,
MissingEntry(Error),
MissingSymbol,
MissingSurfaceInterface,
NullHandle,
AlreadyLoadedInPlace(PathBuf),
}Variants§
Io(Error)
The library could not be staged (missing / unreadable source, temp dir failure).
Load(Error)
The OS loader rejected the staged copy (dlopen / LoadLibraryW).
InvalidSymbol
The requested symbol does not match nv_get_interface or nv_get_interface_[A-Za-z0-9_]+.
MissingEntry(Error)
The library loaded but exports no matching nv_get_interface entry point.
MissingSymbol
The process image does not export the requested nv_get_interface* symbol.
MissingSurfaceInterface
NullHandle
AlreadyLoadedInPlace(PathBuf)
Loading in place (no staging root) a file whose bytes changed since this process already loaded that inode or canonical path in place: the OS loader would hand back the mapped image, silently running the old code.
Trait Implementations§
Source§impl Debug for LoaderError
impl Debug for LoaderError
Source§impl Display for LoaderError
impl Display for LoaderError
Source§impl Error for LoaderError
impl Error for LoaderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn 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 LoaderError
impl !UnwindSafe for LoaderError
impl Forget for LoaderError
impl Freeze for LoaderError
impl Move for LoaderError
impl Send for LoaderError
impl Sync for LoaderError
impl Unpin for LoaderError
impl UnsafeUnpin for LoaderErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const [u8] is !null: UnsafeUnpin,
PhantomData<[u8]>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more