Enum ffsend_api::action::download::DownloadError
source · pub enum DownloadError {
ComputeSignature,
Request,
Response(ResponseError),
NoLength,
Progress,
Download,
Verify,
}
Variants
ComputeSignature
An error occurred while computing the cryptographic signature used for downloading the file.
Request
Sending the request to download the file failed.
Response(ResponseError)
The server responded with an error while requesting the file download.
NoLength
The length of the file is missing, thus the length of the file to download couldn’t be determined.
Progress
Failed to start or update the downloading progress, because of this the download can’t continue.
Download
The actual download and decryption process the server. This covers reading the file from the server, decrypting the file, and writing it to the file system.
Verify
Verifying the downloaded file failed.
Trait Implementations
sourceimpl Debug for DownloadError
impl Debug for DownloadError
sourceimpl Display for DownloadError
impl Display for DownloadError
sourceimpl Fail for DownloadError
impl Fail for DownloadError
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<DownloadError> for Error
impl From<DownloadError> for Error
sourcefn from(err: DownloadError) -> Error
fn from(err: DownloadError) -> Error
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DownloadError
impl Send for DownloadError
impl Sync for DownloadError
impl Unpin for DownloadError
impl UnwindSafe for DownloadError
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