pub struct ReactiveQuery<R, F> { /* private fields */ }Expand description
A live query over a document: re-evaluates query when the document changes
and yields the new result only when it differs from the last emitted one.
Implementations§
Source§impl<R, F> ReactiveQuery<R, F>
impl<R, F> ReactiveQuery<R, F>
Sourcepub fn new(doc: &CrdtDoc, query: F) -> Self
pub fn new(doc: &CrdtDoc, query: F) -> Self
Build a reactive query over doc, evaluating query once for the initial
value.
Auto Trait Implementations§
impl<R, F> !Freeze for ReactiveQuery<R, F>
impl<R, F> !RefUnwindSafe for ReactiveQuery<R, F>
impl<R, F> !Sync for ReactiveQuery<R, F>
impl<R, F> Send for ReactiveQuery<R, F>
impl<R, F> Unpin for ReactiveQuery<R, F>
impl<R, F> UnsafeUnpin for ReactiveQuery<R, F>where
F: UnsafeUnpin,
R: UnsafeUnpin,
impl<R, F> UnwindSafe for ReactiveQuery<R, F>where
F: UnwindSafe,
R: UnwindSafe,
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