Enum maturin::UploadError
source · [−]pub enum UploadError {
UreqError(Error),
AuthenticationError,
IoError(Error),
StatusCodeError(String, String),
FileExistsError(String),
PkgInfoError(PathBuf, Error),
}
Expand description
Error type for different types of errors that can happen when uploading a wheel.
The most interesting type is AuthenticationError because it allows asking the user to reenter the password
Variants
UreqError(Error)
Any ureq error
AuthenticationError
The registry returned a “403 Forbidden”
IoError(Error)
Reading the wheel failed
StatusCodeError(String, String)
The registry returned something else than 200
FileExistsError(String)
File already exists
PkgInfoError(PathBuf, Error)
Read package metadata error
Trait Implementations
sourceimpl Debug for UploadError
impl Debug for UploadError
sourceimpl Display for UploadError
impl Display for UploadError
sourceimpl Error for UploadError
impl Error for UploadError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for UploadError
impl From<Error> for UploadError
Auto Trait Implementations
impl !RefUnwindSafe for UploadError
impl Send for UploadError
impl Sync for UploadError
impl Unpin for UploadError
impl !UnwindSafe for UploadError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more