pub enum EntryErrorKind {
InvalidSize,
InvalidSha1,
InvalidStatus(u16),
Internal(Box<dyn Error + Send + Sync>),
}Expand description
An error for a single entry.
Variants§
InvalidSize
Invalid size of the fully downloaded entry compared to the expected size.
Implies that Entry::set_expected_size is not none.
InvalidSha1
Invalid SHA-1 of the fully downloaded entry compared to the expected SHA-1.
Implies that Entry::set_expected_sha1 is not none.
InvalidStatus(u16)
Invalid HTTP status code while requesting the entry.
Internal(Box<dyn Error + Send + Sync>)
A generic error type for internal and third-party errors that may change depending on the actual implementation.
The current implementation yields the following error types:
-
std::io::Errorfor any I/O error related to opening and writing local files. -
reqwest::Errorfor any error related to HTTP requests.
Trait Implementations§
Source§impl Debug for EntryErrorKind
impl Debug for EntryErrorKind
Source§impl Display for EntryErrorKind
impl Display for EntryErrorKind
Source§impl Error for EntryErrorKind
impl Error for EntryErrorKind
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 !RefUnwindSafe for EntryErrorKind
impl !UnwindSafe for EntryErrorKind
impl Freeze for EntryErrorKind
impl Send for EntryErrorKind
impl Sync for EntryErrorKind
impl Unpin for EntryErrorKind
impl UnsafeUnpin for EntryErrorKind
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