pub enum RocksRequest {
Set {
key: String,
value: String,
},
}
Expand description
Here you will set the types of request that will interact with the raft nodes.
For example the Set
will be used to write data (key and value) to the raft database.
The AddNode
will append a new node to the current existing shared list of nodes.
You will want to add any request that can write data in all nodes here.
Variants§
Trait Implementations§
source§impl Clone for RocksRequest
impl Clone for RocksRequest
source§fn clone(&self) -> RocksRequest
fn clone(&self) -> RocksRequest
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 RocksRequest
impl Debug for RocksRequest
source§impl<'de> Deserialize<'de> for RocksRequest
impl<'de> Deserialize<'de> for RocksRequest
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