Enum ffsend_api::action::metadata::Error
source · pub enum Error {
Exists(ExistsError),
Request(RequestError),
Expired,
PasswordRequired,
}Variants
Exists(ExistsError)
An error occurred while checking whether the file exists on the server.
Request(RequestError)
A general error occurred while requesting the file data. This may be because authentication failed, because decrypting the file metadata didn’t succeed, or due to some other reason.
Expired
The given Send file has expired, or did never exist in the first place. Therefore the file could not be downloaded.
PasswordRequired
A password is required, but was not given.
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: MetadataError) -> Error
fn from(err: MetadataError) -> Error
Converts to this type from the input type.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: ExistsError) -> Error
fn from(err: ExistsError) -> Error
Converts to this type from the input type.
sourceimpl From<RequestError> for Error
impl From<RequestError> for Error
sourcefn from(err: RequestError) -> Error
fn from(err: RequestError) -> 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