Enum download_lib::DownloadError
source · [−]pub enum DownloadError {
ReqwestError {
source: Error,
},
IoError {
source: Error,
},
NotGetFileSize(Url),
SaveFileFinish(String),
NotFileName(Url),
HttpStatusError(String),
JoinInError(JoinError),
}Variants
ReqwestError
Fields
source: ErrorIoError
Fields
source: ErrorNotGetFileSize(Url)
SaveFileFinish(String)
NotFileName(Url)
HttpStatusError(String)
JoinInError(JoinError)
Trait Implementations
sourceimpl Debug for DownloadError
impl Debug for DownloadError
sourceimpl Display for DownloadError
impl Display for DownloadError
sourceimpl Error for DownloadError
impl Error for DownloadError
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
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<&DownloadError> for i32
impl From<&DownloadError> for i32
sourcefn from(v: &DownloadError) -> Self
fn from(v: &DownloadError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for DownloadError
impl From<Error> for DownloadError
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