Enum pliantdb_local::core::networking::DatabaseResponse[][src]

pub enum DatabaseResponse {
    Documents(Vec<Document<'static>, Global>),
    TransactionResults(Vec<OperationResult, Global>),
    ViewMappings(Vec<Serialized, Global>),
    ViewMappingsWithDocs(Vec<MappedDocument, Global>),
    ViewReduction(Vec<u8, Global>),
    ViewGroupedReduction(Vec<MappedValue<Vec<u8, Global>, Vec<u8, Global>>, Global>),
    ExecutedTransactions(Vec<Executed<'static>, Global>),
    LastTransactionId(Option<u64>),
    SubscriberCreated {
        subscriber_id: u64,
    },
    MessageReceived {
        subscriber_id: u64,
        topic: String,
        payload: Vec<u8, Global>,
    },
    KvOutput(Output),
}
Expand description

A response to a DatabaseRequest.

Variants

Documents(Vec<Document<'static>, Global>)

One or more documents.

TransactionResults(Vec<OperationResult, Global>)
ViewMappings(Vec<Serialized, Global>)

Results of DatabaseRequest::Query when with_docs is false.

ViewMappingsWithDocs(Vec<MappedDocument, Global>)

Results of DatabaseRequest::Query when with_docs is true.

ViewReduction(Vec<u8, Global>)

Result of DatabaseRequest::Reduce when grouped is false.

ViewGroupedReduction(Vec<MappedValue<Vec<u8, Global>, Vec<u8, Global>>, Global>)

Result of DatabaseRequest::Reduce when grouped is true.

ExecutedTransactions(Vec<Executed<'static>, Global>)
LastTransactionId(Option<u64>)
SubscriberCreated

A new PubSub subscriber was created.

Show fields

Fields of SubscriberCreated

subscriber_id: u64

The unique ID of the subscriber.

MessageReceived

A PubSub message was received.

Show fields

Fields of MessageReceived

subscriber_id: u64

The ID of the subscriber receiving the message.

topic: String

The topic the payload was received on.

payload: Vec<u8, Global>

The message payload.

KvOutput(Output)

Output from a KeyOperation being executed.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

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

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.