Struct eiffelvis_core::domain::user_queries::TrackedQuery
source · [−]pub struct TrackedQuery<I> { /* private fields */ }
Expand description
A tracked query, only returns new matches.
Implementations
sourceimpl<I> TrackedQuery<I>
impl<I> TrackedQuery<I>
pub fn new(query: Query) -> Self
sourcepub fn handle<'a, R, G>(&'a mut self, graph: &'a G) -> Vec<R>where
G: Graph<Data = BaseEvent, Idx = I, Key = Uuid> + Indexable<usize>,
R: From<&'a BaseEvent> + 'static,
I: Idx,
pub fn handle<'a, R, G>(&'a mut self, graph: &'a G) -> Vec<R>where
G: Graph<Data = BaseEvent, Idx = I, Key = Uuid> + Indexable<usize>,
R: From<&'a BaseEvent> + 'static,
I: Idx,
Collects new nodes that match the query since the last time this method was called If it was not called before it behaves as the non-tracked version.
Auto Trait Implementations
impl<I> RefUnwindSafe for TrackedQuery<I>where
I: RefUnwindSafe,
impl<I> Send for TrackedQuery<I>where
I: Send,
impl<I> Sync for TrackedQuery<I>where
I: Sync,
impl<I> Unpin for TrackedQuery<I>where
I: Unpin,
impl<I> UnwindSafe for TrackedQuery<I>where
I: UnwindSafe,
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