Enum ffsend_api::action::upload::Error
source · pub enum Error {
Prepare(PrepareError),
File(FileError),
Upload(UploadError),
Params(ParamsError),
Password(PasswordError),
}
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(ParamsError)
An error occurred while chaining file parameters.
Password(PasswordError)
An error occurred while setting the password.
Trait Implementations
sourceimpl Fail for Error
impl Fail for Error
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: ParamsError) -> Error
fn from(err: ParamsError) -> Error
Converts to this type from the input type.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: PasswordError) -> Error
fn from(err: PasswordError) -> Error
Converts to this type from the input type.
sourceimpl From<ReaderError> for Error
impl From<ReaderError> for Error
sourcefn from(err: ReaderError) -> Error
fn from(err: ReaderError) -> Error
Converts to this type from the input type.
sourceimpl From<UploadError> for Error
impl From<UploadError> for Error
sourcefn from(err: UploadError) -> Error
fn from(err: UploadError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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