pub enum DownloadError {
BuildClient {
source: Error,
},
Request {
label: String,
url: String,
source: Error,
},
RequestFailed {
label: String,
source: Error,
},
CreateTempFile {
label: String,
path: PathBuf,
source: Error,
},
Preallocate {
label: String,
source: Error,
},
Read {
label: String,
source: Error,
},
Write {
label: String,
source: Error,
},
FinalizeBuffer {
label: String,
source: Error,
},
Sync {
label: String,
source: Error,
},
SizeMismatch {
label: String,
expected: u64,
actual: u64,
},
ChunkCallback {
source: BoxError,
},
}Variants§
BuildClient
Fields
§
source: ErrorRequest
RequestFailed
CreateTempFile
Preallocate
Read
Write
FinalizeBuffer
Sync
SizeMismatch
ChunkCallback
Implementations§
Source§impl DownloadError
impl DownloadError
pub(crate) fn build_client(source: ReqwestError) -> Self
pub(crate) fn request( label: impl Into<String>, url: impl Into<String>, source: ReqwestError, ) -> Self
pub(crate) fn request_failed( label: impl Into<String>, source: ReqwestError, ) -> Self
pub(crate) fn create_temp_file( label: impl Into<String>, path: PathBuf, source: Error, ) -> Self
pub(crate) fn preallocate(label: impl Into<String>, source: Error) -> Self
pub(crate) fn read(label: impl Into<String>, source: Error) -> Self
pub(crate) fn write(label: impl Into<String>, source: Error) -> Self
pub(crate) fn finalize_buffer(label: impl Into<String>, source: Error) -> Self
pub(crate) fn sync(label: impl Into<String>, source: Error) -> Self
pub(crate) fn size_mismatch( label: impl Into<String>, expected: u64, actual: u64, ) -> Self
Trait Implementations§
Source§impl Debug for DownloadError
impl Debug for DownloadError
Source§impl Display for DownloadError
impl Display for DownloadError
Source§impl Error for DownloadError
impl Error for DownloadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DownloadError
impl !RefUnwindSafe for DownloadError
impl Send for DownloadError
impl Sync for DownloadError
impl Unpin for DownloadError
impl !UnwindSafe 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