pub struct BlockingRemoteDatabase(/* private fields */);Expand description
A remote database that blocks the current thread when performing its requests.
Trait Implementations§
Source§impl Clone for BlockingRemoteDatabase
 
impl Clone for BlockingRemoteDatabase
Source§fn clone(&self) -> BlockingRemoteDatabase
 
fn clone(&self) -> BlockingRemoteDatabase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Connection for BlockingRemoteDatabase
 
impl Connection for BlockingRemoteDatabase
Source§type Storage = BlockingClient
 
type Storage = BlockingClient
The 
StorageConnection type that is paired with this type.Source§fn storage(&self) -> Self::Storage
 
fn storage(&self) -> Self::Storage
Returns the 
StorageConnection implementor that this database belongs to.Source§fn list_executed_transactions(
    &self,
    starting_id: Option<u64>,
    result_limit: Option<u32>,
) -> Result<Vec<Executed>, Error>
 
fn list_executed_transactions( &self, starting_id: Option<u64>, result_limit: Option<u32>, ) -> Result<Vec<Executed>, Error>
Lists executed transactions from this
Schema. By default, a maximum of 1000 entries will
be returned, but that limit can be overridden by setting result_limit.
A hard limit of 100,000 results will be returned. To begin listing after
another known transaction_id, pass transaction_id + 1 into
starting_id.Source§fn last_transaction_id(&self) -> Result<Option<u64>, Error>
 
fn last_transaction_id(&self) -> Result<Option<u64>, Error>
Fetches the last transaction id that has been committed, if any.
Source§fn compact(&self) -> Result<(), Error>
 
fn compact(&self) -> Result<(), Error>
Compacts the entire database to reclaim unused disk space. Read more
Source§fn compact_key_value_store(&self) -> Result<(), Error>
 
fn compact_key_value_store(&self) -> Result<(), Error>
Compacts the key value store to reclaim unused disk space. Read more
Source§fn collection<C>(&self) -> Collection<'_, Self, C>where
    C: Collection,
 
fn collection<C>(&self) -> Collection<'_, Self, C>where
    C: Collection,
Accesses a collection for the connected 
Schema.Source§fn view<V>(&self) -> View<'_, Self, V, <V as View>::Key>where
    V: SerializedView,
 
fn view<V>(&self) -> View<'_, Self, V, <V as View>::Key>where
    V: SerializedView,
Accesses a 
schema::View from this connection.Source§fn compact_collection<C>(&self) -> Result<(), Error>where
    C: Collection,
 
fn compact_collection<C>(&self) -> Result<(), Error>where
    C: Collection,
Compacts the collection to reclaim unused disk space. Read more
Source§impl Debug for BlockingRemoteDatabase
 
impl Debug for BlockingRemoteDatabase
Source§impl HasSchema for BlockingRemoteDatabase
 
impl HasSchema for BlockingRemoteDatabase
Source§impl HasSession for BlockingRemoteDatabase
 
impl HasSession for BlockingRemoteDatabase
Source§fn allowed_to<'a, R, P>(&self, resource_name: R, action: &P) -> bool
 
fn allowed_to<'a, R, P>(&self, resource_name: R, action: &P) -> bool
Checks if 
action is permitted against resource_name.Source§fn check_permission<'a, R, P>(
    &self,
    resource_name: R,
    action: &P,
) -> Result<(), Error>
 
fn check_permission<'a, R, P>( &self, resource_name: R, action: &P, ) -> Result<(), Error>
Checks if 
action is permitted against resource_name. If permission
is denied, returns a PermissionDenied
error.Source§impl KeyValue for BlockingRemoteDatabase
 
impl KeyValue for BlockingRemoteDatabase
Source§fn execute_key_operation(&self, op: KeyOperation) -> Result<Output, Error>
 
fn execute_key_operation(&self, op: KeyOperation) -> Result<Output, Error>
Executes a single 
KeyOperation.Source§fn set_key<'a, S, V>(&'a self, key: S, value: &'a V) -> Builder<'a, Self, V>
 
fn set_key<'a, S, V>(&'a self, key: S, value: &'a V) -> Builder<'a, Self, V>
Sets 
key to value. This function returns a builder that is also a
Future. Awaiting the builder will execute Command::Set with the options
given.Source§fn set_binary_key<'a, S>(
    &'a self,
    key: S,
    bytes: &'a [u8],
) -> Builder<'a, Self, ()>
 
fn set_binary_key<'a, S>( &'a self, key: S, bytes: &'a [u8], ) -> Builder<'a, Self, ()>
Sets 
key to bytes. This function returns a builder that is also
a Future. Awaiting the builder will execute Command::Set with
the options given.Source§fn set_numeric_key<S, V>(&self, key: S, value: V) -> Builder<'_, Self, ()>
 
fn set_numeric_key<S, V>(&self, key: S, value: V) -> Builder<'_, Self, ()>
Sets 
key to value. This stores the value as a Numeric,
enabling atomic math operations to be performed on this key. This
function returns a builder that is also a Future. Awaiting the
builder will execute Command::Set with the options given.Source§fn increment_key_by<S, V>(&self, key: S, value: V) -> Builder<'_, Self, V>
 
fn increment_key_by<S, V>(&self, key: S, value: V) -> Builder<'_, Self, V>
Increments 
key by value. The value stored must be a Numeric,
otherwise an error will be returned. The result of the increment
will be the value’s type. For example, if the stored value is
currently a u64, but value is a f64, the current value will be
converted to an f64, and the stored value will be an f64.Source§fn decrement_key_by<S, V>(&self, key: S, value: V) -> Builder<'_, Self, V>
 
fn decrement_key_by<S, V>(&self, key: S, value: V) -> Builder<'_, Self, V>
Decrements 
key by value. The value stored must be a Numeric,
otherwise an error will be returned. The result of the decrement
will be the value’s type. For example, if the stored value is
currently a u64, but value is a f64, the current value will be
converted to an f64, and the stored value will be an f64.Source§fn get_key<S>(&self, key: S) -> Builder<'_, Self>
 
fn get_key<S>(&self, key: S) -> Builder<'_, Self>
Gets the value stored at 
key. This function returns a builder that is also a
Future. Awaiting the builder will execute Command::Get with the options
given.Source§fn key_namespace(&self) -> Option<&str>
 
fn key_namespace(&self) -> Option<&str>
The current namespace.
Source§fn with_key_namespace(&self, namespace: &str) -> Namespaced<'_, Self>
 
fn with_key_namespace(&self, namespace: &str) -> Namespaced<'_, Self>
Access this Key-Value store within a namespace. When using the returned
Namespaced instance, all keys specified will be separated into their
own storage designated by namespace.Source§impl LowLevelConnection for BlockingRemoteDatabase
 
impl LowLevelConnection for BlockingRemoteDatabase
Source§fn apply_transaction(
    &self,
    transaction: Transaction,
) -> Result<Vec<OperationResult>, Error>
 
fn apply_transaction( &self, transaction: Transaction, ) -> Result<Vec<OperationResult>, Error>
Applies a 
Transaction to the schema::Schema. If any operation in the
Transaction fails, none of the operations will be applied to the
schema::Schema.Source§fn get_from_collection(
    &self,
    id: DocumentId,
    collection: &CollectionName,
) -> Result<Option<OwnedDocument>, Error>
 
fn get_from_collection( &self, id: DocumentId, collection: &CollectionName, ) -> Result<Option<OwnedDocument>, Error>
Source§fn get_multiple_from_collection(
    &self,
    ids: &[DocumentId],
    collection: &CollectionName,
) -> Result<Vec<OwnedDocument>, Error>
 
fn get_multiple_from_collection( &self, ids: &[DocumentId], collection: &CollectionName, ) -> Result<Vec<OwnedDocument>, Error>
Retrieves all documents matching 
ids from the named collection.
Documents that are not found are not returned, but no error will be
generated. Read moreSource§fn list_from_collection(
    &self,
    ids: Range<DocumentId>,
    order: Sort,
    limit: Option<u32>,
    collection: &CollectionName,
) -> Result<Vec<OwnedDocument>, Error>
 
fn list_from_collection( &self, ids: Range<DocumentId>, order: Sort, limit: Option<u32>, collection: &CollectionName, ) -> Result<Vec<OwnedDocument>, Error>
Retrieves all documents within the range of 
ids from the named
collection. To retrieve all documents, pass in .. for ids. Read moreSource§fn list_headers_from_collection(
    &self,
    ids: Range<DocumentId>,
    order: Sort,
    limit: Option<u32>,
    collection: &CollectionName,
) -> Result<Vec<Header>, Error>
 
fn list_headers_from_collection( &self, ids: Range<DocumentId>, order: Sort, limit: Option<u32>, collection: &CollectionName, ) -> Result<Vec<Header>, Error>
Retrieves all headers within the range of 
ids from the named
collection. To retrieve all documents, pass in .. for ids. Read moreSource§fn count_from_collection(
    &self,
    ids: Range<DocumentId>,
    collection: &CollectionName,
) -> Result<u64, Error>
 
fn count_from_collection( &self, ids: Range<DocumentId>, collection: &CollectionName, ) -> Result<u64, Error>
Source§fn compact_collection_by_name(
    &self,
    collection: CollectionName,
) -> Result<(), Error>
 
fn compact_collection_by_name( &self, collection: CollectionName, ) -> Result<(), Error>
Compacts the collection to reclaim unused disk space. Read more
Source§fn query_by_name(
    &self,
    view: &ViewName,
    key: Option<SerializedQueryKey>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<Vec<Serialized>, Error>
 
fn query_by_name( &self, view: &ViewName, key: Option<SerializedQueryKey>, order: Sort, limit: Option<u32>, access_policy: AccessPolicy, ) -> Result<Vec<Serialized>, Error>
Queries for view entries from the named 
view. Read moreSource§fn query_by_name_with_docs(
    &self,
    view: &ViewName,
    key: Option<SerializedQueryKey>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<MappedSerializedDocuments, Error>
 
fn query_by_name_with_docs( &self, view: &ViewName, key: Option<SerializedQueryKey>, order: Sort, limit: Option<u32>, access_policy: AccessPolicy, ) -> Result<MappedSerializedDocuments, Error>
Queries for view entries from the named 
view with their source
documents. Read moreSource§fn reduce_by_name(
    &self,
    view: &ViewName,
    key: Option<SerializedQueryKey>,
    access_policy: AccessPolicy,
) -> Result<Vec<u8>, Error>
 
fn reduce_by_name( &self, view: &ViewName, key: Option<SerializedQueryKey>, access_policy: AccessPolicy, ) -> Result<Vec<u8>, Error>
Reduces the view entries from the named 
view. Read moreSource§fn reduce_grouped_by_name(
    &self,
    view: &ViewName,
    key: Option<SerializedQueryKey>,
    access_policy: AccessPolicy,
) -> Result<Vec<MappedSerializedValue>, Error>
 
fn reduce_grouped_by_name( &self, view: &ViewName, key: Option<SerializedQueryKey>, access_policy: AccessPolicy, ) -> Result<Vec<MappedSerializedValue>, Error>
Reduces the view entries from the named 
view, reducing the values by each
unique key. Read moreSource§fn delete_docs_by_name(
    &self,
    view: &ViewName,
    key: Option<SerializedQueryKey>,
    access_policy: AccessPolicy,
) -> Result<u64, Error>
 
fn delete_docs_by_name( &self, view: &ViewName, key: Option<SerializedQueryKey>, access_policy: AccessPolicy, ) -> Result<u64, Error>
Deletes all source documents for entries that match within the named
view. Read moreSource§fn insert<C, PrimaryKey, B>(
    &self,
    id: Option<&PrimaryKey>,
    contents: B,
) -> Result<CollectionHeader<<C as Collection>::PrimaryKey>, Error>where
    C: Collection,
    B: Into<Bytes> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + Send + ?Sized,
 
fn insert<C, PrimaryKey, B>(
    &self,
    id: Option<&PrimaryKey>,
    contents: B,
) -> Result<CollectionHeader<<C as Collection>::PrimaryKey>, Error>where
    C: Collection,
    B: Into<Bytes> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + Send + ?Sized,
Inserts a newly created document into the connected 
schema::Schema
for the Collection C. If id is None a unique id will be
generated. If an id is provided and a document already exists with that
id, a conflict error will be returned. Read moreSource§fn update<C, D>(&self, doc: &mut D) -> Result<(), Error>
 
fn update<C, D>(&self, doc: &mut D) -> Result<(), Error>
Updates an existing document in the connected 
schema::Schema for the
Collection C. Upon success, doc.revision will be updated with
the new revision. Read moreSource§fn overwrite<C, PrimaryKey>(
    &self,
    id: &PrimaryKey,
    contents: Vec<u8>,
) -> Result<CollectionHeader<<C as Collection>::PrimaryKey>, Error>
 
fn overwrite<C, PrimaryKey>( &self, id: &PrimaryKey, contents: Vec<u8>, ) -> Result<CollectionHeader<<C as Collection>::PrimaryKey>, Error>
Overwrites an existing document, or inserts a new document. Upon success,
doc.revision will be updated with the new revision information. Read moreSource§fn get<C, PrimaryKey>(
    &self,
    id: &PrimaryKey,
) -> Result<Option<OwnedDocument>, Error>
 
fn get<C, PrimaryKey>( &self, id: &PrimaryKey, ) -> Result<Option<OwnedDocument>, Error>
Source§fn get_multiple<'id, C, PrimaryKey, DocumentIds, I>(
    &self,
    ids: DocumentIds,
) -> Result<Vec<OwnedDocument>, Error>where
    C: Collection,
    DocumentIds: IntoIterator<Item = &'id PrimaryKey, IntoIter = I> + Send + Sync,
    I: Iterator<Item = &'id PrimaryKey> + Send + Sync,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + 'id + ?Sized,
 
fn get_multiple<'id, C, PrimaryKey, DocumentIds, I>(
    &self,
    ids: DocumentIds,
) -> Result<Vec<OwnedDocument>, Error>where
    C: Collection,
    DocumentIds: IntoIterator<Item = &'id PrimaryKey, IntoIter = I> + Send + Sync,
    I: Iterator<Item = &'id PrimaryKey> + Send + Sync,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + 'id + ?Sized,
Retrieves all documents matching 
ids. Documents that are not found are
not returned, but no error will be generated. Read moreSource§fn list<'id, C, R, PrimaryKey>(
    &self,
    ids: R,
    order: Sort,
    limit: Option<u32>,
) -> Result<Vec<OwnedDocument>, Error>where
    C: Collection,
    R: Into<RangeRef<'id, <C as Collection>::PrimaryKey, PrimaryKey>> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + PartialEq + 'id + ?Sized,
    <C as Collection>::PrimaryKey: Borrow<PrimaryKey> + PartialEq<PrimaryKey>,
 
fn list<'id, C, R, PrimaryKey>(
    &self,
    ids: R,
    order: Sort,
    limit: Option<u32>,
) -> Result<Vec<OwnedDocument>, Error>where
    C: Collection,
    R: Into<RangeRef<'id, <C as Collection>::PrimaryKey, PrimaryKey>> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + PartialEq + 'id + ?Sized,
    <C as Collection>::PrimaryKey: Borrow<PrimaryKey> + PartialEq<PrimaryKey>,
Retrieves all documents within the range of 
ids. To retrieve all
documents, pass in .. for ids. Read moreSource§fn list_headers<'id, C, R, PrimaryKey>(
    &self,
    ids: R,
    order: Sort,
    limit: Option<u32>,
) -> Result<Vec<Header>, Error>where
    C: Collection,
    R: Into<RangeRef<'id, <C as Collection>::PrimaryKey, PrimaryKey>> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + PartialEq + 'id + ?Sized,
    <C as Collection>::PrimaryKey: Borrow<PrimaryKey> + PartialEq<PrimaryKey>,
 
fn list_headers<'id, C, R, PrimaryKey>(
    &self,
    ids: R,
    order: Sort,
    limit: Option<u32>,
) -> Result<Vec<Header>, Error>where
    C: Collection,
    R: Into<RangeRef<'id, <C as Collection>::PrimaryKey, PrimaryKey>> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + PartialEq + 'id + ?Sized,
    <C as Collection>::PrimaryKey: Borrow<PrimaryKey> + PartialEq<PrimaryKey>,
Retrieves all documents within the range of 
ids. To retrieve all
documents, pass in .. for ids. Read moreSource§fn count<'id, C, R, PrimaryKey>(&self, ids: R) -> Result<u64, Error>where
    C: Collection,
    R: Into<RangeRef<'id, <C as Collection>::PrimaryKey, PrimaryKey>> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + PartialEq + 'id + ?Sized,
    <C as Collection>::PrimaryKey: Borrow<PrimaryKey> + PartialEq<PrimaryKey>,
 
fn count<'id, C, R, PrimaryKey>(&self, ids: R) -> Result<u64, Error>where
    C: Collection,
    R: Into<RangeRef<'id, <C as Collection>::PrimaryKey, PrimaryKey>> + Send,
    PrimaryKey: KeyEncoding<<C as Collection>::PrimaryKey> + PartialEq + 'id + ?Sized,
    <C as Collection>::PrimaryKey: Borrow<PrimaryKey> + PartialEq<PrimaryKey>,
Counts the number of documents within the range of 
ids. Read moreSource§fn delete<C, H>(&self, doc: &H) -> Result<(), Error>
 
fn delete<C, H>(&self, doc: &H) -> Result<(), Error>
Removes a 
Document from the database. Read moreSource§fn query<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<Vec<CollectionMap<<<V as View>::Collection as Collection>::PrimaryKey, <V as View>::Key, <V as View>::Value>>, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
 
fn query<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<Vec<CollectionMap<<<V as View>::Collection as Collection>::PrimaryKey, <V as View>::Key, <V as View>::Value>>, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
Source§fn query_with_docs<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<MappedDocuments<OwnedDocument, V>, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
 
fn query_with_docs<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<MappedDocuments<OwnedDocument, V>, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
Source§fn query_with_collection_docs<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<MappedDocuments<CollectionDocument<<V as View>::Collection>, V>, Error>where
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
    V: SerializedView,
    <V as View>::Collection: SerializedCollection,
    <<V as View>::Collection as SerializedCollection>::Contents: Debug,
 
fn query_with_collection_docs<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    order: Sort,
    limit: Option<u32>,
    access_policy: AccessPolicy,
) -> Result<MappedDocuments<CollectionDocument<<V as View>::Collection>, V>, Error>where
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
    V: SerializedView,
    <V as View>::Collection: SerializedCollection,
    <<V as View>::Collection as SerializedCollection>::Contents: Debug,
Source§fn reduce<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    access_policy: AccessPolicy,
) -> Result<<V as View>::Value, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
 
fn reduce<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    access_policy: AccessPolicy,
) -> Result<<V as View>::Value, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
Source§fn reduce_grouped<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    access_policy: AccessPolicy,
) -> Result<Vec<MappedValue<<V as View>::Key, <V as View>::Value>>, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
 
fn reduce_grouped<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    access_policy: AccessPolicy,
) -> Result<Vec<MappedValue<<V as View>::Key, <V as View>::Value>>, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
Source§fn delete_docs<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    access_policy: AccessPolicy,
) -> Result<u64, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
 
fn delete_docs<V, Key>(
    &self,
    key: Option<QueryKey<'_, <V as View>::Key, Key>>,
    access_policy: AccessPolicy,
) -> Result<u64, Error>where
    V: SerializedView,
    Key: KeyEncoding<<V as View>::Key> + PartialEq + ?Sized,
    <V as View>::Key: Borrow<Key> + PartialEq<Key>,
Deletes all of the documents associated with this view. Read more
Source§impl PubSub for BlockingRemoteDatabase
 
impl PubSub for BlockingRemoteDatabase
Source§type Subscriber = BlockingRemoteSubscriber
 
type Subscriber = BlockingRemoteSubscriber
The Subscriber type for this 
PubSub connection.Source§fn create_subscriber(&self) -> Result<Self::Subscriber, Error>
 
fn create_subscriber(&self) -> Result<Self::Subscriber, Error>
Create a new 
Subscriber for this relay.Source§fn publish_bytes(&self, topic: Vec<u8>, payload: Vec<u8>) -> Result<(), Error>
 
fn publish_bytes(&self, topic: Vec<u8>, payload: Vec<u8>) -> Result<(), Error>
Publishes a 
payload to all subscribers of topic.Source§fn publish_bytes_to_all(
    &self,
    topics: impl IntoIterator<Item = Vec<u8>> + Send,
    payload: Vec<u8>,
) -> Result<(), Error>
 
fn publish_bytes_to_all( &self, topics: impl IntoIterator<Item = Vec<u8>> + Send, payload: Vec<u8>, ) -> Result<(), Error>
Publishes a 
payload to all subscribers of all topics.Source§fn publish<Topic, Payload>(
    &self,
    topic: &Topic,
    payload: &Payload,
) -> Result<(), Error>
 
fn publish<Topic, Payload>( &self, topic: &Topic, payload: &Payload, ) -> Result<(), Error>
Publishes a 
payload to all subscribers of topic.Source§fn publish_to_all<'topics, Topics, Topic, Payload>(
    &self,
    topics: Topics,
    payload: &Payload,
) -> Result<(), Error>where
    Topics: IntoIterator<Item = &'topics Topic> + 'topics,
    Topic: Serialize + 'topics,
    Payload: Serialize,
 
fn publish_to_all<'topics, Topics, Topic, Payload>(
    &self,
    topics: Topics,
    payload: &Payload,
) -> Result<(), Error>where
    Topics: IntoIterator<Item = &'topics Topic> + 'topics,
    Topic: Serialize + 'topics,
    Payload: Serialize,
Publishes a 
payload to all subscribers of all topics.Auto Trait Implementations§
impl Freeze for BlockingRemoteDatabase
impl !RefUnwindSafe for BlockingRemoteDatabase
impl Send for BlockingRemoteDatabase
impl Sync for BlockingRemoteDatabase
impl Unpin for BlockingRemoteDatabase
impl !UnwindSafe for BlockingRemoteDatabase
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more