[][src]Enum locate_cargo_manifest::LocateManifestError

pub enum LocateManifestError {
    Io(Error),
    CargoExecution {
        stderr: Vec<u8>,
    },
    StringConversion(FromUtf8Error),
    ParseJson(Error),
    NoRoot,
}

Errors that can occur while retrieving the cargo manifest path.

Variants

Io(Error)

An I/O error that occurred while trying to execute cargo locate-project.

CargoExecution

The command cargo locate-project did not exit successfully.

Fields of CargoExecution

stderr: Vec<u8>

The standard error output of cargo locate-project.

StringConversion(FromUtf8Error)

The output of cargo locate-project was not valid UTF-8.

ParseJson(Error)

An error occurred while parsing the output of cargo locate-project as JSON.

NoRoot

The JSON output of cargo locate-project did not contain the expected "root" string.

Trait Implementations

impl Debug for LocateManifestError[src]

impl Display for LocateManifestError[src]

impl Error for LocateManifestError[src]

impl From<Error> for LocateManifestError[src]

impl From<Error> for LocateManifestError[src]

impl From<FromUtf8Error> for LocateManifestError[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.