Enum guppy::errors::Error [−][src]
#[non_exhaustive]
pub enum Error {
CommandError(Box<dyn Error + Send + Sync>),
MetadataParseError(Error),
MetadataSerializeError(Error),
PackageGraphConstructError(String),
UnknownPackageId(PackageId),
UnknownFeatureId(PackageId, Option<String>),
UnknownWorkspacePath(Utf8PathBuf),
UnknownWorkspaceName(String),
TargetSpecError(String, TargetSpecError),
PackageGraphInternalError(String),
FeatureGraphInternalError(String),
UnknownSummaryId(SummaryId),
}
Expand description
Error type describing the sorts of errors guppy
can return.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
An error occurred while executing cargo metadata
.
MetadataParseError(Error)
An error occurred while parsing cargo metadata
JSON.
Tuple Fields of MetadataParseError
0: Error
MetadataSerializeError(Error)
An error occurred while serializing cargo metadata
JSON.
Tuple Fields of MetadataSerializeError
0: Error
PackageGraphConstructError(String)
An error occurred while constructing a PackageGraph
from parsed metadata.
Tuple Fields of PackageGraphConstructError
0: String
UnknownPackageId(PackageId)
A package ID was unknown to this PackageGraph
.
Tuple Fields of UnknownPackageId
0: PackageId
A feature ID was unknown to this FeatureGraph
.
UnknownWorkspacePath(Utf8PathBuf)
A package specified by path was unknown to this workspace.
Tuple Fields of UnknownWorkspacePath
0: Utf8PathBuf
UnknownWorkspaceName(String)
A package specified by name was unknown to this workspace.
Tuple Fields of UnknownWorkspaceName
0: String
TargetSpecError(String, TargetSpecError)
An error was returned by target-spec
.
Tuple Fields of TargetSpecError
0: String
1: TargetSpecError
PackageGraphInternalError(String)
An internal error occurred within this PackageGraph
.
Tuple Fields of PackageGraphInternalError
0: String
FeatureGraphInternalError(String)
An internal error occurred within this FeatureGraph
.
Tuple Fields of FeatureGraphInternalError
0: String
UnknownSummaryId(SummaryId)
A summary ID was unknown to this PackageGraph
.
This is present if the summaries
feature is enabled.
Tuple Fields of UnknownSummaryId
0: SummaryId
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more