pub enum Query {
All,
Items(Vec<QueryItem>),
}Expand description
A query: a set of QueryItems OR’d together, or the catch-all Query::All.
All is a distinct variant rather than “an item with no
constraints” so the read and condition paths can recognise a full scan and bypass
the index entirely. An empty Items set is the opposite: it matches
nothing.
Variants§
All
Matches every event. Full scans and broad projection catch-up use this and skip the index.
Items(Vec<QueryItem>)
Matches an event if any contained item matches (logical OR). Empty matches nothing.
Implementations§
Trait Implementations§
impl Eq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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