pub enum CacheExpectation {
ColdStart,
ExpectedWarm,
PlannedInvalidation {
reason: String,
},
}Expand description
Cache behavior expected from the relationship between two submissions.
Variants§
ColdStart
No prior submitted cacheable projection exists.
ExpectedWarm
The prior cacheable projection is an exact prefix of the candidate.
PlannedInvalidation
A known rewrite invalidated the previous cacheable suffix.
Implementations§
Source§impl CacheExpectation
impl CacheExpectation
Sourcepub fn planned_reason(&self) -> Option<&str>
pub fn planned_reason(&self) -> Option<&str>
Planned invalidation reason, when applicable.
Sourcepub const fn expects_cache_hit(&self) -> bool
pub const fn expects_cache_hit(&self) -> bool
Whether a provider cache hit is expected.
Trait Implementations§
Source§impl Clone for CacheExpectation
impl Clone for CacheExpectation
Source§fn clone(&self) -> CacheExpectation
fn clone(&self) -> CacheExpectation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheExpectation
impl Debug for CacheExpectation
impl Eq for CacheExpectation
Source§impl PartialEq for CacheExpectation
impl PartialEq for CacheExpectation
impl StructuralPartialEq for CacheExpectation
Auto Trait Implementations§
impl Freeze for CacheExpectation
impl RefUnwindSafe for CacheExpectation
impl Send for CacheExpectation
impl Sync for CacheExpectation
impl Unpin for CacheExpectation
impl UnsafeUnpin for CacheExpectation
impl UnwindSafe for CacheExpectation
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