pub enum ResolutionError {
InvalidRequest,
InvalidWorkingDirectory,
InvalidSearchDirectory {
index: usize,
},
NotFound,
NotRegularFile,
NotExecutable,
Io {
directory: Option<usize>,
source: Error,
},
}Expand description
Executable selection failed before any admission or execution.
Variants§
InvalidRequest
The request is empty, contains NUL, or is a bare . or ...
InvalidWorkingDirectory
The working directory is relative or contains NUL.
InvalidSearchDirectory
A caller-supplied search directory contains NUL.
NotFound
No regular file with Unix executable permission bits was found.
NotRegularFile
An explicitly requested path is not a regular file.
NotExecutable
An explicitly requested file has no Unix executable permission bits.
Io
Metadata or canonicalization failed. Search stops on errors other than missing candidates rather than silently selecting a later directory.
Trait Implementations§
Source§impl Debug for ResolutionError
impl Debug for ResolutionError
Source§impl Display for ResolutionError
impl Display for ResolutionError
Source§impl Error for ResolutionError
impl Error for ResolutionError
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 ResolutionError
impl !UnwindSafe for ResolutionError
impl Freeze for ResolutionError
impl Send for ResolutionError
impl Sync for ResolutionError
impl Unpin for ResolutionError
impl UnsafeUnpin for ResolutionError
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