pub enum DownloadFailure {
NoSpace {
needed_bytes: u64,
},
ServerStoppedConverting,
SourceMissing,
Network,
NoLongerAvailable,
Other,
Unknown,
}Expand description
Why a download failed (DownloadState::Failed), beside its reason in
words.
Variants§
NoSpace
The device has no room for it: needed_bytes more must be free.
A device’s own; a server never sends it.
ServerStoppedConverting
The server’s conversion of it (its video, its audio, or picture subtitles read as text) failed, or stopped with the server.
SourceMissing
The media file it is made from is gone from the server, or changed since it was prepared.
Network
Talking to the server failed: a device’s own, for an answer that broke off or made no sense, or a file that arrived damaged.
NoLongerAvailable
A paired server’s item (P8-07) that is no longer available before
its file was made: that server stopped sharing it, or the servers
unpaired. A download made already stays Ready, marked
DownloadInfo::no_longer_available.
Other
Anything else: the reason says.
Unknown
A cause this build does not know.