pub struct Sync { /* private fields */ }

Implementations

Gets temporary access to the set of currently registered subscriptions.

A (read) lock is held until the return value is dropped: this means that neither Self::register_subscription() nor SyncSubscription::cancel() can make progress until this read lock is released.

Run the provided query on the device of connected peers and send the results of the query back to the local peer’s data store.

The returned SyncSubscription object must be kept in scope for as long as you want to keep receiving updates.

Use placeholders to incorporate values from the optional query_args parameter into the query. The keys of the QueryArguments object must match the placeholders used within the query. You cannot use placeholders in the FROM clause.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Applies the [Compat] adapter by value. Read more
Applies the [Compat] adapter by shared reference. Read more
Applies the [Compat] adapter by mutable reference. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts to T by calling Into<T>::into.
Tries to convert to T by calling TryInto<T>::try_into.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.