#[non_exhaustive]pub enum QueryPolicy {
Prepared,
Membership,
DeltaMembership,
Result,
}Expand description
How a prepared query caches structural membership or full results between executions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Prepared
Reuse only the resolved plan and traverse sparse or table storage each execution.
Membership
Keep structural membership and apply added/changed windows during traversal.
DeltaMembership
Maintain membership incrementally from the world’s query delta log.
Result
Materialize the full result set once; added/changed windows are rejected.
Trait Implementations§
Source§impl Clone for QueryPolicy
impl Clone for QueryPolicy
Source§fn clone(&self) -> QueryPolicy
fn clone(&self) -> QueryPolicy
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 moreimpl Copy for QueryPolicy
Source§impl Debug for QueryPolicy
impl Debug for QueryPolicy
Source§impl Default for QueryPolicy
impl Default for QueryPolicy
Source§fn default() -> QueryPolicy
fn default() -> QueryPolicy
Returns the “default value” for a type. Read more
impl Eq for QueryPolicy
Source§impl PartialEq for QueryPolicy
impl PartialEq for QueryPolicy
impl StructuralPartialEq for QueryPolicy
Auto Trait Implementations§
impl Freeze for QueryPolicy
impl RefUnwindSafe for QueryPolicy
impl Send for QueryPolicy
impl Sync for QueryPolicy
impl Unpin for QueryPolicy
impl UnsafeUnpin for QueryPolicy
impl UnwindSafe for QueryPolicy
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