pub enum RefreshFailurePolicy {
Unresolved,
Recompute,
ServeCachedWithinFreshness,
}Expand description
What a failed refresh supplies (spec 044, 3.6.5). No policy supplies a value older than its declared freshness or turns a failure into a value.
Variants§
Unresolved
The failure is supplied as it is.
Recompute
The hit is abandoned and the decision runs again with no reuse.
ServeCachedWithinFreshness
A volatile input’s stored snapshot entry is supplied with its original as-of time, and the core’s freshness check decides.
Trait Implementations§
Source§impl Clone for RefreshFailurePolicy
impl Clone for RefreshFailurePolicy
impl Copy for RefreshFailurePolicy
Source§impl Debug for RefreshFailurePolicy
impl Debug for RefreshFailurePolicy
Source§impl Default for RefreshFailurePolicy
impl Default for RefreshFailurePolicy
Source§impl<'de> Deserialize<'de> for RefreshFailurePolicy
impl<'de> Deserialize<'de> for RefreshFailurePolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RefreshFailurePolicy
Source§impl JsonSchema for RefreshFailurePolicy
impl JsonSchema for RefreshFailurePolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RefreshFailurePolicy
impl PartialEq for RefreshFailurePolicy
Source§impl Serialize for RefreshFailurePolicy
impl Serialize for RefreshFailurePolicy
impl StructuralPartialEq for RefreshFailurePolicy
Auto Trait Implementations§
impl Freeze for RefreshFailurePolicy
impl RefUnwindSafe for RefreshFailurePolicy
impl Send for RefreshFailurePolicy
impl Sync for RefreshFailurePolicy
impl Unpin for RefreshFailurePolicy
impl UnsafeUnpin for RefreshFailurePolicy
impl UnwindSafe for RefreshFailurePolicy
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