pub struct LoadFailure(/* private fields */);Expand description
A failed search, with a typed cause for every attempted location.
The aggregate is boxed so enriching selection diagnostics does not enlarge
crate::Error on capture and send paths. Match LoadRefusal rather
than parsing the text produced by Display.
Implementations§
Source§impl LoadFailure
impl LoadFailure
Sourcepub fn library(&self) -> LibraryKind
pub fn library(&self) -> LibraryKind
Which native library the selection sought.
Sourcepub fn attempts(&self) -> &[LoadAttempt]
pub fn attempts(&self) -> &[LoadAttempt]
Every refused location, in search order.
Sourcepub fn loaded_any(&self) -> bool
pub fn loaded_any(&self) -> bool
Whether any candidate loaded native code before it was refused.
false means none could be opened. It does not establish that every
bare name was absent: platform loader failures retain the OS diagnostic.
Trait Implementations§
Source§impl Clone for LoadFailure
impl Clone for LoadFailure
Source§impl Debug for LoadFailure
impl Debug for LoadFailure
Source§impl Display for LoadFailure
impl Display for LoadFailure
impl Eq for LoadFailure
Source§impl Error for LoadFailure
impl Error for LoadFailure
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()
Source§impl Hash for LoadFailure
impl Hash for LoadFailure
Source§impl PartialEq for LoadFailure
impl PartialEq for LoadFailure
impl StructuralPartialEq for LoadFailure
Auto Trait Implementations§
impl Freeze for LoadFailure
impl RefUnwindSafe for LoadFailure
impl Send for LoadFailure
impl Sync for LoadFailure
impl Unpin for LoadFailure
impl UnsafeUnpin for LoadFailure
impl UnwindSafe for LoadFailure
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