Enum dittolive_ditto::prelude::LiveQueryEvent
source · [−]pub enum LiveQueryEvent {
Initial,
Update {
old_documents: Vec<BoxedDocument>,
insertions: Box<[usize]>,
deletions: Box<[usize]>,
updates: Box<[usize]>,
moves: Vec<LiveQueryMove>,
},
}
Variants
Initial
Update
Implementations
sourceimpl LiveQueryEvent
impl LiveQueryEvent
pub fn hash(&self, docs: &[BoxedDocument]) -> Result<u64, DittoError>
pub fn hash_mnemonic(&self, docs: &[BoxedDocument]) -> Result<String, DittoError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LiveQueryEvent
impl Send for LiveQueryEvent
impl Sync for LiveQueryEvent
impl Unpin for LiveQueryEvent
impl UnwindSafe for LiveQueryEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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