Enum salsa_2022::cycle::CycleRecoveryStrategy
source · [−]pub enum CycleRecoveryStrategy {
Panic,
Fallback,
}
Expand description
Cycle recovery strategy: Is this query capable of recovering from a cycle that results from executing the function? If so, how?
Variants
Panic
Cannot recover from cycles: panic.
This is the default. It is also what happens if a cycle occurs and the queries involved have different recovery strategies.
In the case of a failure due to a cycle, the panic value will be XXX (FIXME).
Fallback
Recovers from cycles by storing a sentinel value.
This value is computed by the QueryFunction::cycle_fallback
function.
Trait Implementations
sourceimpl Clone for CycleRecoveryStrategy
impl Clone for CycleRecoveryStrategy
sourcefn clone(&self) -> CycleRecoveryStrategy
fn clone(&self) -> CycleRecoveryStrategy
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CycleRecoveryStrategy
impl Debug for CycleRecoveryStrategy
sourceimpl PartialEq<CycleRecoveryStrategy> for CycleRecoveryStrategy
impl PartialEq<CycleRecoveryStrategy> for CycleRecoveryStrategy
sourcefn eq(&self, other: &CycleRecoveryStrategy) -> bool
fn eq(&self, other: &CycleRecoveryStrategy) -> bool
impl Copy for CycleRecoveryStrategy
impl Eq for CycleRecoveryStrategy
impl StructuralEq for CycleRecoveryStrategy
impl StructuralPartialEq for CycleRecoveryStrategy
Auto Trait Implementations
impl RefUnwindSafe for CycleRecoveryStrategy
impl Send for CycleRecoveryStrategy
impl Sync for CycleRecoveryStrategy
impl Unpin for CycleRecoveryStrategy
impl UnwindSafe for CycleRecoveryStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.