pub struct SingleDocumentLiveQueryEvent { /* private fields */ }
Expand description
Provides information about a live query event relating to a single document live query.
Implementations
sourceimpl SingleDocumentLiveQueryEvent
impl SingleDocumentLiveQueryEvent
sourcepub fn is_initial(&self) -> bool
pub fn is_initial(&self) -> bool
Return true if the event is an “initial”
sourcepub fn old_document(&self) -> &Option<BoxedDocument>
pub fn old_document(&self) -> &Option<BoxedDocument>
Return the old boxed document
sourceimpl SingleDocumentLiveQueryEvent
impl SingleDocumentLiveQueryEvent
sourcepub fn hash(&self, doc: &Option<BoxedDocument>) -> Result<u64, DittoError>
pub fn hash(&self, doc: &Option<BoxedDocument>) -> Result<u64, DittoError>
Return hash of the eventually contained document.
sourcepub fn hash_mnemonic(
&self,
doc: &Option<BoxedDocument>
) -> Result<String, DittoError>
pub fn hash_mnemonic(
&self,
doc: &Option<BoxedDocument>
) -> Result<String, DittoError>
Return hash of the mnemonic of the eventually contained document.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SingleDocumentLiveQueryEvent
impl Send for SingleDocumentLiveQueryEvent
impl Sync for SingleDocumentLiveQueryEvent
impl Unpin for SingleDocumentLiveQueryEvent
impl UnwindSafe for SingleDocumentLiveQueryEvent
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