pub(crate) enum PublicationError {
Show 13 variants
Discovery(ResolveError),
Git(GitFailure),
Publish(PublishError),
NotTip {
commit: String,
tip: String,
},
UnconfiguredArtifactUnit(String),
MissingArtifacts(String),
PackageArtifactCount {
unit: String,
kind: &'static str,
actual: usize,
},
UnexpectedPackageArtifact {
unit: String,
name: String,
},
ZeroRevision(String),
UnparsableTag(UnparsableTag),
Artifact(ArtifactError),
Pin(PinError),
DigestMismatch {
unit: String,
dependency: String,
artifact: String,
pinned: String,
built: String,
},
}Expand description
Unit selection or artifact publication failure.
Variants§
Discovery(ResolveError)
The configured units cannot be resolved.
Git(GitFailure)
Listing or reading tags failed.
Publish(PublishError)
Publishing the selected units failed.
NotTip
Publication needs the branch tip, and the commit is not it.
UnconfiguredArtifactUnit(String)
Artifacts are configured for a unit that does not exist.
MissingArtifacts(String)
A selected unit has artifacts, and the run was given none.
PackageArtifactCount
A publishing unit does not declare exactly one package artifact.
Fields
UnexpectedPackageArtifact
A unit declares a package artifact its target does not publish.
ZeroRevision(String)
A unit’s revision file holds 0.
UnparsableTag(UnparsableTag)
Tags exist under a unit’s prefix and none of them names a version.
Artifact(ArtifactError)
Staging validation failed.
Pin(PinError)
A digest pin file cannot be read.
DigestMismatch
A digest pin differs from the digest of the built dependency asset.
Trait Implementations§
Source§impl Debug for PublicationError
impl Debug for PublicationError
Source§impl Display for PublicationError
impl Display for PublicationError
Source§impl Error for PublicationError
impl Error for PublicationError
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<ArtifactError> for PublicationError
impl From<ArtifactError> for PublicationError
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Source§impl From<GitFailure> for PublicationError
impl From<GitFailure> for PublicationError
Source§fn from(source: GitFailure) -> Self
fn from(source: GitFailure) -> Self
Converts to this type from the input type.
Source§impl From<PinError> for PublicationError
impl From<PinError> for PublicationError
Source§impl From<PublicationError> for ErrorKind
impl From<PublicationError> for ErrorKind
Source§fn from(error: PublicationError) -> Self
fn from(error: PublicationError) -> Self
Converts to this type from the input type.
Source§impl From<PublishError> for PublicationError
impl From<PublishError> for PublicationError
Source§fn from(source: PublishError) -> Self
fn from(source: PublishError) -> Self
Converts to this type from the input type.
Source§impl From<ResolveError> for PublicationError
impl From<ResolveError> for PublicationError
Source§fn from(source: ResolveError) -> Self
fn from(source: ResolveError) -> Self
Converts to this type from the input type.
Source§impl From<UnparsableTag> for PublicationError
impl From<UnparsableTag> for PublicationError
Source§fn from(source: UnparsableTag) -> Self
fn from(source: UnparsableTag) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PublicationError
impl !UnwindSafe for PublicationError
impl Freeze for PublicationError
impl Send for PublicationError
impl Sync for PublicationError
impl Unpin for PublicationError
impl UnsafeUnpin for PublicationError
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