[][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 From<Error> for LocateManifestError[src]

impl From<FromUtf8Error> for LocateManifestError[src]

impl From<Error> for LocateManifestError[src]

impl Debug for LocateManifestError[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.