pub enum ServerTransactionMessage {
Show 21 variants
Exists(MessageExists),
Get(MessageGet),
Set(MessageSet),
Put(MessagePut),
Putc(MessagePutc),
Del(MessageDel),
Delc(MessageDelc),
Delr(MessageDelr),
Keys(MessageKeys),
Scan(MessageScan),
Commit,
SetSavePoint,
RollbackToSavePoint,
ReleaseSavePoint,
Rollback,
EmptyResponse,
ResponseExists(bool),
ResponseGet(ResponseGet),
ResponseKeys(ResponseKeys),
ResponseScan(ResponseScan),
ResponseRolledBack(bool),
}
Expand description
The wrapper for different key value operations.
§Variants
Exists
- Check if a key exists.Get
- Get the value of a key.Set
- Set the value of a key.Put
- Put a key value pair.Putc
- Put a key value pair if the value of that key is the same as the one provided.Del
- Delete a key.Delc
- Delete a key if the value of that key is the same as the one provided.Delr
- Delete a key and return the value.Keys
- Get all keys within a range with a limit.Scan
- Get all keys and values within a range with a limit.Commit
- Commits the transaction without any more key value operations.SetSavePoint
- Set a save point for the transaction.RollbackToSavePoint
- Rollback to the last save point.Rollback
- Rollback the transaction.ResponseExists
- Response to theExists
operation.ResponseGet
- Response to theGet
operation.ResponseKeys
- Response to theKeys
operation.ResponseScan
- Response to theScan
operation.ResponseRolledBack
- Response to theRollback
operation.
Variants§
Exists(MessageExists)
Get(MessageGet)
Set(MessageSet)
Put(MessagePut)
Putc(MessagePutc)
Del(MessageDel)
Delc(MessageDelc)
Delr(MessageDelr)
Keys(MessageKeys)
Scan(MessageScan)
Commit
SetSavePoint
RollbackToSavePoint
ReleaseSavePoint
Rollback
EmptyResponse
ResponseExists(bool)
ResponseGet(ResponseGet)
ResponseKeys(ResponseKeys)
ResponseScan(ResponseScan)
ResponseRolledBack(bool)
Trait Implementations§
source§impl Clone for ServerTransactionMessage
impl Clone for ServerTransactionMessage
source§fn clone(&self) -> ServerTransactionMessage
fn clone(&self) -> ServerTransactionMessage
Returns a copy 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 Debug for ServerTransactionMessage
impl Debug for ServerTransactionMessage
source§impl<'de> Deserialize<'de> for ServerTransactionMessage
impl<'de> Deserialize<'de> for ServerTransactionMessage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ServerTransactionMessage
impl PartialEq for ServerTransactionMessage
source§impl Revisioned for ServerTransactionMessage
impl Revisioned for ServerTransactionMessage
source§impl Serialize for ServerTransactionMessage
impl Serialize for ServerTransactionMessage
impl StructuralPartialEq for ServerTransactionMessage
Auto Trait Implementations§
impl Freeze for ServerTransactionMessage
impl RefUnwindSafe for ServerTransactionMessage
impl Send for ServerTransactionMessage
impl Sync for ServerTransactionMessage
impl Unpin for ServerTransactionMessage
impl UnwindSafe for ServerTransactionMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)