pub enum Error {
Show 13 variants
WorkspaceError(WorkspaceError),
WorkspaceCycles {
crate1: String,
crate2: String,
},
VerifyError {
reason: String,
},
BadDependency {
from: String,
to: String,
typ: DependencyType,
},
FileReadError {
inner: Error,
path: PathBuf,
},
FileWriteError {
inner: Error,
path: PathBuf,
},
TomlError(TomlError),
CargoTomlError {
inner: CargoTomlError,
manifest_path: PathBuf,
},
CargoPublish {
inner: Error,
manifest_path: PathBuf,
},
CargoPublishStatus {
status: ExitStatus,
manifest_path: PathBuf,
stderr: String,
},
UrlError(UrlError),
WriteReleaseError(WriteReleaseError),
CargoLockfileUpdate {
reason: String,
package_name: String,
},
}
Expand description
The error type for operations semantic-release-rust
operations.
Variants§
WorkspaceError(WorkspaceError)
Error while parsing the structure of a workspace.
WorkspaceCycles
Error when verifying that a workspace does not include cycles.
VerifyError
Error while verifying the conditions for a release.
BadDependency
Error while verifying that dependencies allow publication.
This is a specific part of verifying the conditions for a release.
Fields
typ: DependencyType
The type of dependency that prevents publication.
FileReadError
Error while reading a file.
FileWriteError
Error while writing a file.
TomlError(TomlError)
Error while parsing a TOML document.
CargoTomlError
Error while examining the contents of a Cargo.toml
file.
Fields
inner: CargoTomlError
The error found in the Cargo.toml
file.
CargoPublish
Error while attempting to run cargo publish
Fields
CargoPublishStatus
Error that records a non-sucess exit status from cargo publish
.
Fields
status: ExitStatus
The exit status from cargo publish
.
UrlError(UrlError)
Error while parsing a url for the release record.
WriteReleaseError(WriteReleaseError)
Error while attempting to write the release record as JSON.
CargoLockfileUpdate
Error while attempting to update Cargo lockfile.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> 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