pub enum ScryerFilter {
Fields(FieldSet),
And(Vec<ScryerFilter>),
Or(Vec<ScryerFilter>),
Not(Box<ScryerFilter>),
Any,
HealthSignal(HealthSignal),
}Expand description
The filter shape tower hands to scryer.subscribe.
Fields captures the indexable constraints that scryer can push down to
its SQL indexes. Boolean variants allow compound predicates to be evaluated
entirely inside scryer when the substrate supports it; in the current P2
stub tower evaluates them in-process via matches.
Variants§
Fields(FieldSet)
Indexable field constraints — the fast path scryer evaluates first.
And(Vec<ScryerFilter>)
All children must match.
Or(Vec<ScryerFilter>)
At least one child must match.
Not(Box<ScryerFilter>)
The single child must NOT match.
Any
Matches every event regardless of content.
HealthSignal(HealthSignal)
Subscribe to scryer’s own health signal stream for this specific signal. Opens a parallel subscription, not against the main event store.
Implementations§
Trait Implementations§
Source§impl Clone for ScryerFilter
impl Clone for ScryerFilter
Source§fn clone(&self) -> ScryerFilter
fn clone(&self) -> ScryerFilter
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 moreSource§impl Debug for ScryerFilter
impl Debug for ScryerFilter
Source§impl PartialEq for ScryerFilter
impl PartialEq for ScryerFilter
impl StructuralPartialEq for ScryerFilter
Auto Trait Implementations§
impl Freeze for ScryerFilter
impl RefUnwindSafe for ScryerFilter
impl Send for ScryerFilter
impl Sync for ScryerFilter
impl Unpin for ScryerFilter
impl UnsafeUnpin for ScryerFilter
impl UnwindSafe for ScryerFilter
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