pub enum CacheVerdict {
Valid,
VenvMissing,
MetadataMissing,
MetadataUnreadable,
RequirementsChanged,
ManifestVersionChanged,
ManifestHashChanged,
}Expand description
Why a cached venv was rejected. Carried rather than logged-and-dropped so tests can pin the specific rule that fired and operators get a precise reason.
Variants§
Valid
The cache is usable as-is.
VenvMissing
The venv directory does not exist.
MetadataMissing
No metadata file sits alongside the venv.
MetadataUnreadable
The metadata file could not be parsed.
RequirementsChanged
The requirements file content changed.
ManifestVersionChanged
The manifest version changed (signal present in metadata).
ManifestHashChanged
The manifest content changed (signal present in metadata).
Implementations§
Trait Implementations§
Source§impl Clone for CacheVerdict
impl Clone for CacheVerdict
Source§impl Debug for CacheVerdict
impl Debug for CacheVerdict
impl Eq for CacheVerdict
Source§impl PartialEq for CacheVerdict
impl PartialEq for CacheVerdict
impl StructuralPartialEq for CacheVerdict
Auto Trait Implementations§
impl Freeze for CacheVerdict
impl RefUnwindSafe for CacheVerdict
impl Send for CacheVerdict
impl Sync for CacheVerdict
impl Unpin for CacheVerdict
impl UnsafeUnpin for CacheVerdict
impl UnwindSafe for CacheVerdict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.