pub(super) enum DownloadError {
Connection(ConnectionError),
Header(BadHeader),
File(Error),
NoHomeFolder(NoHomeFolder),
PartTooFar {
starts_at: u64,
saved: u64,
},
PartMoved {
starts_at: u64,
asked: u64,
},
PartCutShort {
saved: u64,
end: u64,
},
LeftBehind {
reason: Box<Stopped>,
path: PathBuf,
},
}Variants§
Connection(ConnectionError)
Header(BadHeader)
File(Error)
NoHomeFolder(NoHomeFolder)
PartTooFar
The server sent a part of the file after the part already saved.
PartMoved
The server sent a part of the file other than the one a connection asked for.
PartCutShort
A connection’s body ended before the end of its part.
LeftBehind
The download stopped and its partly written file couldn’t be removed.
Trait Implementations§
Source§impl Debug for DownloadError
impl Debug for DownloadError
Auto Trait Implementations§
impl !RefUnwindSafe for DownloadError
impl !UnwindSafe for DownloadError
impl Freeze for DownloadError
impl Send for DownloadError
impl Sync for DownloadError
impl Unpin for DownloadError
impl UnsafeUnpin for DownloadError
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