#[non_exhaustive]pub enum CacheStatus {
Cached,
Missing,
Invalid(String),
}Expand description
What the cache holds of a fetched rule set.
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.
Cached
Its bundle is in the cache, its manifest the catalogue’s and every file with the SHA-256 the manifest records.
Missing
It has not been fetched.
Invalid(String)
Something is in its place, but not its bundle as fetched: why.
Trait Implementations§
Source§impl Clone for CacheStatus
impl Clone for CacheStatus
Source§impl Debug for CacheStatus
impl Debug for CacheStatus
impl Eq for CacheStatus
Source§impl PartialEq for CacheStatus
impl PartialEq for CacheStatus
impl StructuralPartialEq for CacheStatus
Auto Trait Implementations§
impl Forget for CacheStatus
impl Freeze for CacheStatus
impl RefUnwindSafe for CacheStatus
impl Send for CacheStatus
impl Sync for CacheStatus
impl Unpin for CacheStatus
impl UnsafeUnpin for CacheStatus
impl UnwindSafe for CacheStatus
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