Enum python_launcher::Error [−][src]
pub enum Error { ParseVersionComponentError(ParseIntError), DotMissing, FileNameMissing, FileNameToStrError, PathFileNameError, NoExecutableFound(RequestedVersion), IllegalArgument(PathBuf, String), }
Expand description
Error enum for the entire crate.
Variants
ParseVersionComponentError(ParseIntError)
String passed to RequestedVersion::from_str
or ExactVersion::from_str
has an expected digit component that cannot be parsed as an integer.
ExactVersion::from_str
is passed a string missing a .
.
ExactVersion::from_path
is given a Path
which lacks a file name.
ExactVersion::from_path
cannot convert a file name to a string.
An unexpected file name was given to ExactVersion::from_path
.
NoExecutableFound(RequestedVersion)
No Python executable could be found based on the RequestedVersion
.
Multiple CLI flags given when the first flag that is expected to be specified on its own.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more