pub struct SelectionFailure(/* private fields */);Expand description
A selection conflict, with the library identities needed to act on it.
The payload is boxed so adding diagnostic context does not enlarge
crate::Error on capture and send paths. Use the accessors for decisions
and Display for diagnostic text.
Implementations§
Source§impl SelectionFailure
impl SelectionFailure
Sourcepub fn kind(&self) -> SelectionConflict
pub fn kind(&self) -> SelectionConflict
The typed cause of this conflict.
Sourcepub fn library(&self) -> LibraryKind
pub fn library(&self) -> LibraryKind
The native library the failed selection sought.
Sourcepub fn selected(&self) -> Option<&Path>
pub fn selected(&self) -> Option<&Path>
The already selected library, when its path is known.
For a File conflict caused by the selected core runtime, this is that core runtime’s path, rather than a File library not yet selected.
Sourcepub fn requested(&self) -> Option<&Path>
pub fn requested(&self) -> Option<&Path>
The explicit library path that conflicted, when the caller supplied one.
Sourcepub fn foreign_module(&self) -> Option<&Path>
pub fn foreign_module(&self) -> Option<&Path>
The foreign runtime already in the process’s global symbol scope.
Trait Implementations§
Source§impl Clone for SelectionFailure
impl Clone for SelectionFailure
Source§impl Debug for SelectionFailure
impl Debug for SelectionFailure
Source§impl Display for SelectionFailure
impl Display for SelectionFailure
impl Eq for SelectionFailure
Source§impl Error for SelectionFailure
impl Error for SelectionFailure
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 SelectionFailure
impl Hash for SelectionFailure
Source§impl PartialEq for SelectionFailure
impl PartialEq for SelectionFailure
impl StructuralPartialEq for SelectionFailure
Auto Trait Implementations§
impl Freeze for SelectionFailure
impl RefUnwindSafe for SelectionFailure
impl Send for SelectionFailure
impl Sync for SelectionFailure
impl Unpin for SelectionFailure
impl UnsafeUnpin for SelectionFailure
impl UnwindSafe for SelectionFailure
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