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
sourceimpl 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
sourceimpl Display for SyncSubscription
impl Display for SyncSubscription
sourceimpl Drop for SyncSubscription
impl Drop for SyncSubscription
sourceimpl Hash for SyncSubscription
impl Hash for SyncSubscription
sourceimpl Ord for SyncSubscription
impl Ord for SyncSubscription
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SyncSubscription> for SyncSubscription
impl PartialEq<SyncSubscription> for SyncSubscription
sourceimpl PartialOrd<SyncSubscription> for SyncSubscription
impl PartialOrd<SyncSubscription> for SyncSubscription
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn 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
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
impl<T> CompatExt for T
impl<T> CompatExt for T
fn compat_ref(&self) -> Compat<&T>
fn compat_ref(&self) -> Compat<&T>
Applies the [
Compat
] adapter by shared reference. Read morefn compat_mut(&mut self) -> Compat<&mut T>
fn compat_mut(&mut self) -> Compat<&mut T>
Applies the [
Compat
] adapter by mutable reference. Read moreimpl<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