Struct dittolive_ditto::sync::SyncSubscription
source · pub struct SyncSubscription { /* private fields */ }
Expand description
Use ditto.sync().register_subscription(...)
to create a SyncSubscription
The subscription will remain active until either:
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.
sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Returns true
if this SyncSubscription
has been cancelled, false
otherwise
Trait Implementations§
source§impl Display for SyncSubscription
impl Display for SyncSubscription
source§impl Hash for SyncSubscription
impl Hash for SyncSubscription
source§impl Ord for SyncSubscription
impl Ord for SyncSubscription
source§impl PartialEq for SyncSubscription
impl PartialEq for SyncSubscription
source§impl PartialOrd for SyncSubscription
impl PartialOrd 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 Freeze for SyncSubscription
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 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