Struct openraft_rocksstore::RocksResponse
source · pub struct RocksResponse {
pub value: Option<String>,
}
Expand description
Here you will defined what type of answer you expect from reading the data of a node.
In this example it will return a optional value from a given key in
the RocksRequest.Set
.
TODO: Should we explain how to create multiple AppDataResponse
?
Fields§
§value: Option<String>
Trait Implementations§
source§impl Clone for RocksResponse
impl Clone for RocksResponse
source§fn clone(&self) -> RocksResponse
fn clone(&self) -> RocksResponse
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 RocksResponse
impl Debug for RocksResponse
source§impl<'de> Deserialize<'de> for RocksResponse
impl<'de> Deserialize<'de> for RocksResponse
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
Auto Trait Implementations§
impl Freeze for RocksResponse
impl RefUnwindSafe for RocksResponse
impl Send for RocksResponse
impl Sync for RocksResponse
impl Unpin for RocksResponse
impl UnwindSafe for RocksResponse
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