Struct dittolive_ditto::store::dql::SyncSubscription
source · pub struct SyncSubscription { /* private fields */ }
Expand description
Create a replication subscription to receive updates from remote peers about documents matching the replication subscription’s query.
The replication subscription will remain active until
SyncSubscription::cancel
is called or the replication subscription object
goes out of scope.
Implementations§
source§impl SyncSubscription
impl SyncSubscription
sourcepub fn cancel(&self)
pub fn cancel(&self)
Cancels the SyncSubscription
so that new changes matching the query are
no longer received from other peers. No-op if it’s already cancelled or
the owning Ditto
object goes out of scope.
pub fn is_cancelled(&self) -> bool
Trait Implementations§
source§impl Display for SyncSubscription
impl Display for SyncSubscription
source§impl Drop for SyncSubscription
impl Drop for SyncSubscription
source§impl Hash for SyncSubscription
impl Hash for SyncSubscription
source§impl Ord for SyncSubscription
impl Ord for SyncSubscription
source§impl PartialEq<SyncSubscription> for SyncSubscription
impl PartialEq<SyncSubscription> for SyncSubscription
source§impl PartialOrd<SyncSubscription> for SyncSubscription
impl PartialOrd<SyncSubscription> for SyncSubscription
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SyncSubscription
Auto Trait Implementations§
impl !RefUnwindSafe for SyncSubscription
impl Send for SyncSubscription
impl Sync for SyncSubscription
impl Unpin for SyncSubscription
impl !UnwindSafe for SyncSubscription
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more