pub enum PublishError {
AlreadyPublished {
package: String,
version: String,
},
PublishFailed {
package: String,
reason: String,
},
DryRunFailed {
package: String,
reason: String,
},
RateLimitExceeded {
retry_after_seconds: u64,
},
NetworkError {
reason: String,
},
AuthenticationError,
YankFailed {
package: String,
version: String,
reason: String,
},
}Expand description
Publishing errors
Variants§
AlreadyPublished
Package already published
PublishFailed
Publish command failed
Fields
DryRunFailed
Dry run validation failed
Fields
RateLimitExceeded
Rate limit exceeded
NetworkError
Network error during publishing
AuthenticationError
Authentication error for crates.io
YankFailed
Yank operation failed
Trait Implementations§
Source§impl Debug for PublishError
impl Debug for PublishError
Source§impl Display for PublishError
impl Display for PublishError
Source§impl Error for PublishError
impl Error for PublishError
1.30.0 · 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<PublishError> for ReleaseError
impl From<PublishError> for ReleaseError
Source§fn from(source: PublishError) -> Self
fn from(source: PublishError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PublishError
impl RefUnwindSafe for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnwindSafe for PublishError
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