Enum rust_releases_io::IsStaleError
source · #[non_exhaustive]pub enum IsStaleError {
ReadMetadata(Error),
ReadModificationDate(Error),
ElapsedSinceModified(SystemTimeError),
}
Expand description
Returned in case the staleness check is_stale
faults.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadMetadata(Error)
Returned when the staleness check could not be completed because the cache file metadata could not be read.
ReadModificationDate(Error)
Returned when the staleness check could not be completed because the cache file modification time could not be read.
ElapsedSinceModified(SystemTimeError)
Returned when the staleness check could not be completed because the modification date of the cache file is more recent than the current system time. The modification date should not be in the future.
Trait Implementations§
source§impl Debug for IsStaleError
impl Debug for IsStaleError
source§impl Display for IsStaleError
impl Display for IsStaleError
source§impl Error for IsStaleError
impl Error for IsStaleError
1.30.0 · 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()
Auto Trait Implementations§
impl !RefUnwindSafe for IsStaleError
impl Send for IsStaleError
impl Sync for IsStaleError
impl Unpin for IsStaleError
impl !UnwindSafe for IsStaleError
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