pub struct StoreObserver { /* private fields */ }Expand description
Use ditto.store().register_observer(...) to create an observer with a callback.
Implementations§
Source§impl StoreObserver
impl StoreObserver
Sourcepub fn query_string(&self) -> String
pub fn query_string(&self) -> String
Return the query string used to create this StoreObserver.
Sourcepub fn query_arguments(&self) -> Option<Value>
pub fn query_arguments(&self) -> Option<Value>
Return the query arguments used to create this StoreObserver, if any.
Sourcepub fn cancel(&self)
pub fn cancel(&self)
Cancels this StoreObserver and its callback.
The callback registered with this StoreObserver will no longer be called
after calling .cancel().
This call is a no-op if this StoreObserver has already been cancelled
or if the owning Ditto object has gone out of scope.
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Returns true if this StoreObserver has been cancelled.
Trait Implementations§
Source§impl Hash for StoreObserver
impl Hash for StoreObserver
Source§impl PartialEq for StoreObserver
impl PartialEq for StoreObserver
impl Eq for StoreObserver
Auto Trait Implementations§
impl Freeze for StoreObserver
impl RefUnwindSafe for StoreObserver
impl Send for StoreObserver
impl Sync for StoreObserver
impl Unpin for StoreObserver
impl UnwindSafe for StoreObserver
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more