pub enum Response<Val = Value> {
    Value {
        key: String,
        value: Val,
    },
    OperationOk,
    OperationFailed,
    Ignored,
}
Expand description

Response or notification sent to the client.

Variants

Value

Fields

key: String
value: Val

Informs the client about the value for certain key.

OperationOk

Informs the client that the operation was performed.

OperationFailed

Informs the client that the operation failed.

Ignored

Informs the client that the operation didn’t have to be performed.

This happens if the client attempts to subscribe to key he’s already subscribed to, or unsubscribe from key he isn’t subscribed to.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.