pub enum Error {
Prepare(PrepareError),
File(FileError),
Upload(UploadError),
Params(Error),
Password(Error),
}
Variants§
Prepare(PrepareError)
An error occurred while preparing a file for uploading.
File(FileError)
An error occurred while opening, reading or using the file that the should be uploaded.
Upload(UploadError)
An error occurred while uploading the file.
Params(Error)
An error occurred while chaining file parameters.
Password(Error)
An error occurred while setting the password.
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)>
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<Error> for Error
impl From<Error> for Error
Source§fn from(source: ParamsError) -> Self
fn from(source: ParamsError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: PasswordError) -> Self
fn from(source: PasswordError) -> Self
Converts to this type from the input type.
Source§impl From<PrepareError> for Error
impl From<PrepareError> for Error
Source§fn from(source: PrepareError) -> Self
fn from(source: PrepareError) -> Self
Converts to this type from the input type.
Source§impl From<ReaderError> for Error
impl From<ReaderError> for Error
Source§fn from(err: ReaderError) -> Error
fn from(err: ReaderError) -> Error
Converts to this type from the input type.
Source§impl From<UploadError> for Error
impl From<UploadError> for Error
Source§fn from(source: UploadError) -> Self
fn from(source: UploadError) -> Self
Converts to this type from the input type.
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
Mutably borrows from an owned value. Read more