pub enum CargoMetadataError {
Io(Error),
Failed {
stderr: Vec<u8>,
},
StringConversion(FromUtf8Error),
ParseJson(Error),
}Expand description
Failed to query project metadata.
Variants§
Io(Error)
An I/O error that occurred while trying to execute cargo metadata.
Failed
The command cargo metadata did not exit successfully.
StringConversion(FromUtf8Error)
The output of cargo metadata was not valid UTF-8.
ParseJson(Error)
An error occurred while parsing the output of cargo metadata as JSON.
Trait Implementations§
Source§impl Debug for CargoMetadataError
impl Debug for CargoMetadataError
Source§impl Display for CargoMetadataError
impl Display for CargoMetadataError
Source§impl Error for CargoMetadataError
impl Error for CargoMetadataError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CargoMetadataError> for LocateError
impl From<CargoMetadataError> for LocateError
Source§fn from(source: CargoMetadataError) -> Self
fn from(source: CargoMetadataError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CargoMetadataError
impl From<Error> for CargoMetadataError
Source§impl From<Error> for CargoMetadataError
impl From<Error> for CargoMetadataError
Source§impl From<FromUtf8Error> for CargoMetadataError
impl From<FromUtf8Error> for CargoMetadataError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CargoMetadataError
impl !RefUnwindSafe for CargoMetadataError
impl Send for CargoMetadataError
impl Sync for CargoMetadataError
impl Unpin for CargoMetadataError
impl !UnwindSafe for CargoMetadataError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more