pub(crate) enum CargoError {
Workspace(WorkspaceError),
Semver(SemverError),
Package(PackageError),
Changelog(ReadError),
MissingUnreleased(MissingUnreleased),
Path(PathError),
Edit(EditError),
MissingManifest(String),
PrivatePackage {
unit: String,
package: String,
},
MissingPackage(String),
Lockfile(FilesError),
}Expand description
A Cargo adapter failure.
Variants§
Workspace(WorkspaceError)
Workspace discovery or planning failed.
Semver(SemverError)
The API compatibility check could not run.
Package(PackageError)
Checking or publishing a package failed.
Changelog(ReadError)
A unit changelog cannot be read.
MissingUnreleased(MissingUnreleased)
A changelog lacks the ## [Unreleased] heading.
Path(PathError)
A planned path is unsafe or lies outside the repository root.
Edit(EditError)
The planned edits conflict or are stale.
MissingManifest(String)
A unit’s manifest is not a workspace member.
PrivatePackage
A unit publishes a package whose manifest forbids publishing.
MissingPackage(String)
A resolved unit lacks its Cargo package name.
Lockfile(FilesError)
The proposal worktree lockfile cannot be read.
Trait Implementations§
Source§impl Debug for CargoError
impl Debug for CargoError
Source§impl Display for CargoError
impl Display for CargoError
Source§impl Error for CargoError
impl Error for CargoError
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<CargoError> for ResolveError
impl From<CargoError> for ResolveError
Source§fn from(source: CargoError) -> Self
fn from(source: CargoError) -> Self
Converts to this type from the input type.
Source§impl From<EditError> for CargoError
impl From<EditError> for CargoError
Source§impl From<FilesError> for CargoError
impl From<FilesError> for CargoError
Source§fn from(source: FilesError) -> Self
fn from(source: FilesError) -> Self
Converts to this type from the input type.
Source§impl From<MissingUnreleased> for CargoError
impl From<MissingUnreleased> for CargoError
Source§fn from(source: MissingUnreleased) -> Self
fn from(source: MissingUnreleased) -> Self
Converts to this type from the input type.
Source§impl From<PackageError> for CargoError
impl From<PackageError> for CargoError
Source§fn from(source: PackageError) -> Self
fn from(source: PackageError) -> Self
Converts to this type from the input type.
Source§impl From<PathError> for CargoError
impl From<PathError> for CargoError
Source§impl From<ReadError> for CargoError
impl From<ReadError> for CargoError
Source§impl From<SemverError> for CargoError
impl From<SemverError> for CargoError
Source§fn from(source: SemverError) -> Self
fn from(source: SemverError) -> Self
Converts to this type from the input type.
Source§impl From<WorkspaceError> for CargoError
impl From<WorkspaceError> for CargoError
Source§fn from(source: WorkspaceError) -> Self
fn from(source: WorkspaceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CargoError
impl !UnwindSafe for CargoError
impl Freeze for CargoError
impl Send for CargoError
impl Sync for CargoError
impl Unpin for CargoError
impl UnsafeUnpin for CargoError
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