pub enum RustProjectError {
InvalidRoot {
path: Box<str>,
reason: Box<str>,
},
OutOfRoot {
path: Box<str>,
root: Box<str>,
},
NonUtf8Path {
path: Box<str>,
},
ManifestRead {
path: Box<str>,
source: Error,
},
ManifestParse {
path: Box<str>,
message: Box<str>,
},
MissingPackageVersion {
path: Box<str>,
},
MissingWorkspacePackageVersion {
path: Box<str>,
workspace: Box<str>,
},
InvalidPackageVersion {
path: Box<str>,
version: Box<str>,
source: Error,
},
InvalidPackageEdition {
path: Box<str>,
edition: Box<str>,
},
MissingWorkspacePackageEdition {
path: Box<str>,
workspace: Box<str>,
},
LimitExceeded {
limit: u32,
},
MemberScanLimitExceeded {
limit: u32,
},
}Expand description
Failure encountered while reading a repository’s Cargo manifests.
Variants§
InvalidRoot
The supplied root is not a directory holding a readable Cargo.toml.
OutOfRoot
A path the loader reached is not inside the repository root.
Fields
NonUtf8Path
A path beneath the repository root is not valid UTF-8.
ManifestRead
A manifest or a directory scanned for members could not be read.
ManifestParse
A manifest is not valid TOML, or does not match Cargo’s schema.
Fields
MissingPackageVersion
A package declares no version and inherits none.
MissingWorkspacePackageVersion
A package inherits its version from a workspace that declares none.
Fields
InvalidPackageVersion
A resolved package version is not valid SemVer.
Fields
InvalidPackageEdition
A package declares an edition Cargo does not recognize.
Fields
MissingWorkspacePackageEdition
A package inherits its edition from a workspace that declares none.
Fields
LimitExceeded
The project holds more manifests than the configured limit allows.
MemberScanLimitExceeded
Expanding the workspace member globs walked more of the tree than the configured limit allows.
Separate from Self::LimitExceeded because it is crossed before any
manifest is read: the subject is directories visited, not manifests
held, and the operator’s fix is a narrower members pattern rather
than a higher manifest ceiling.
Trait Implementations§
Source§impl Debug for RustProjectError
impl Debug for RustProjectError
Source§impl Display for RustProjectError
impl Display for RustProjectError
Source§impl Error for RustProjectError
impl Error for RustProjectError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for RustProjectError
impl !UnwindSafe for RustProjectError
impl Freeze for RustProjectError
impl Send for RustProjectError
impl Sync for RustProjectError
impl Unpin for RustProjectError
impl UnsafeUnpin for RustProjectError
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
Source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more