Enum oma_fetch::DownloadError
source · pub enum DownloadError {
ChecksumMisMatch(String, String),
NotFound(String),
IOError(Error),
ReqwestError(Error),
ChecksumError(ChecksumError),
FailedOpenLocalSourceFile(String, String),
DownloadAllFailed(String, String),
DownloadSourceBuilderError(DownloadEntryBuilderError),
InvaildURL(String),
}Variants§
ChecksumMisMatch(String, String)
NotFound(String)
IOError(Error)
ReqwestError(Error)
ChecksumError(ChecksumError)
FailedOpenLocalSourceFile(String, String)
DownloadAllFailed(String, String)
DownloadSourceBuilderError(DownloadEntryBuilderError)
InvaildURL(String)
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)>
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()
source§impl From<ChecksumError> for DownloadError
impl From<ChecksumError> for DownloadError
source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
source§impl From<DownloadEntryBuilderError> for DownloadError
impl From<DownloadEntryBuilderError> for DownloadError
source§fn from(source: DownloadEntryBuilderError) -> Self
fn from(source: DownloadEntryBuilderError) -> Self
Converts to this type from the input type.
source§impl 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§
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