[][src]Enum dmenv::Error

pub enum Error {
    ReadError {
        path: PathBuf,
        io_error: Error,
    },
    WriteError {
        path: PathBuf,
        io_error: Error,
    },
    NulByteFound {
        arg: String,
    },
    ProcessStartError {
        message: String,
    },
    ProcessWaitError {
        io_error: Error,
    },
    ProcessOutError {
        io_error: Error,
    },
    PipUpgradeFailed {},
    BrokenPipFreezeLine {
        line: String,
    },
    MissingSetupPy {},
    MissingLock {
        expected_path: PathBuf,
    },
    MissingVenv {
        path: PathBuf,
    },
    FileExists {
        path: PathBuf,
    },
    Other {
        message: String,
    },
    MalformedLock {
        line: usize,
        details: String,
    },
    NothingToBump {
        name: String,
    },
    MultipleBumps {
        name: String,
    },
}

Every variant matches a type of error we want the end-use to see. here so that we have full control over the error messages printed to the user.

Variants

ReadError

Fields of ReadError

path: PathBufio_error: Error
WriteError

Fields of WriteError

path: PathBufio_error: Error
NulByteFound

Fields of NulByteFound

arg: String
ProcessStartError

Fields of ProcessStartError

message: String
ProcessWaitError

Fields of ProcessWaitError

io_error: Error
ProcessOutError

Fields of ProcessOutError

io_error: Error
PipUpgradeFailed

Fields of PipUpgradeFailed

BrokenPipFreezeLine

Fields of BrokenPipFreezeLine

line: String
MissingSetupPy

Fields of MissingSetupPy

MissingLock

Fields of MissingLock

expected_path: PathBuf
MissingVenv

Fields of MissingVenv

path: PathBuf
FileExists

Fields of FileExists

path: PathBuf
Other

Fields of Other

message: String
MalformedLock

Fields of MalformedLock

line: usizedetails: String
NothingToBump

Fields of NothingToBump

name: String
MultipleBumps

Fields of MultipleBumps

name: String

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

Implement Display for our Error type

Auto Trait Implementations

impl Send for Error

impl Unpin for Error

impl Sync for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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