Enum python_launcher::Error[][src]

pub enum Error {
    ParseVersionComponentError(ParseIntError),
    DotMissing,
    FileNameMissing,
    FileNameToStrError,
    PathFileNameError,
    NoExecutableFound(RequestedVersion),
}

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.

DotMissing

ExactVersion::from_str is passed a string missing a ..

FileNameMissing

ExactVersion::from_path is given a Path which lacks a file name.

FileNameToStrError

ExactVersion::from_path cannot convert a file name to a string.

PathFileNameError

An unexpected file name was given to ExactVersion::from_path.

NoExecutableFound(RequestedVersion)

No Python executable could be found based on the RequestedVersion.

Implementations

impl Error[src]

pub fn exit_code(&self) -> ExitCode[src]

Returns the appropriate exit code for the error.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.