pub struct SweepStrategy { /* private fields */ }Expand description
The sweep strategy controls what data we will keep/discard when we
do a GC-sweep. The default (SweepStrategy::default) is a no-op,
use SweepStrategy::discard_outdated constructor or discard_*
and sweep_* builder functions to construct useful strategies.
Implementations§
Source§impl SweepStrategy
impl SweepStrategy
Sourcepub fn discard_outdated() -> SweepStrategy
pub fn discard_outdated() -> SweepStrategy
Convenience function that discards all data not used thus far in the current revision.
Equivalent to SweepStrategy::default().discard_everything().
Sourcepub fn discard_values(self) -> SweepStrategy
pub fn discard_values(self) -> SweepStrategy
Collects query values.
Query dependencies are left in the database, which allows to quickly determine if the query is up to date, and avoid recomputing dependencies.
Sourcepub fn discard_everything(self) -> SweepStrategy
pub fn discard_everything(self) -> SweepStrategy
Collects both values and information about dependencies.
Dependant queries will be recomputed even if all inputs to this query stay the same.
Sourcepub fn sweep_outdated(self) -> SweepStrategy
pub fn sweep_outdated(self) -> SweepStrategy
Process all keys, not verefied at the current revision.
Sourcepub fn sweep_all_revisions(self) -> SweepStrategy
pub fn sweep_all_revisions(self) -> SweepStrategy
Process all keys.
Trait Implementations§
Source§impl Clone for SweepStrategy
impl Clone for SweepStrategy
Source§fn clone(&self) -> SweepStrategy
fn clone(&self) -> SweepStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SweepStrategy
impl Debug for SweepStrategy
Source§impl Default for SweepStrategy
impl Default for SweepStrategy
Source§fn default() -> SweepStrategy
fn default() -> SweepStrategy
Source§impl PartialEq for SweepStrategy
impl PartialEq for SweepStrategy
impl Copy for SweepStrategy
impl Eq for SweepStrategy
impl StructuralPartialEq for SweepStrategy
Auto Trait Implementations§
impl Freeze for SweepStrategy
impl RefUnwindSafe for SweepStrategy
impl Send for SweepStrategy
impl Sync for SweepStrategy
impl Unpin for SweepStrategy
impl UnwindSafe for SweepStrategy
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
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
key and return true if they are equal.