pub trait StoreAccessorProxyInterface: Send + Sync {
type GetValueResponseFut: Future<Output = Result<Option<Box<Value>>, Error>> + Send;
type FlushResponseFut: Future<Output = Result<StoreAccessorFlushResult, Error>> + Send;
// Required methods
fn get_value(&self, key: &str) -> Self::GetValueResponseFut;
fn set_value(&self, key: &str, val: Value) -> Result<(), Error>;
fn delete_value(&self, key: &str) -> Result<(), Error>;
fn list_prefix(
&self,
prefix: &str,
it: ServerEnd<ListIteratorMarker>,
) -> Result<(), Error>;
fn get_prefix(
&self,
prefix: &str,
it: ServerEnd<GetIteratorMarker>,
) -> Result<(), Error>;
fn delete_prefix(&self, prefix: &str) -> Result<(), Error>;
fn commit(&self) -> Result<(), Error>;
fn flush(&self) -> Self::FlushResponseFut;
}Required Associated Types§
type GetValueResponseFut: Future<Output = Result<Option<Box<Value>>, Error>> + Send
type FlushResponseFut: Future<Output = Result<StoreAccessorFlushResult, Error>> + Send
Required Methods§
fn get_value(&self, key: &str) -> Self::GetValueResponseFut
fn set_value(&self, key: &str, val: Value) -> Result<(), Error>
fn delete_value(&self, key: &str) -> Result<(), Error>
fn list_prefix( &self, prefix: &str, it: ServerEnd<ListIteratorMarker>, ) -> Result<(), Error>
fn get_prefix( &self, prefix: &str, it: ServerEnd<GetIteratorMarker>, ) -> Result<(), Error>
fn delete_prefix(&self, prefix: &str) -> Result<(), Error>
fn commit(&self) -> Result<(), Error>
fn flush(&self) -> Self::FlushResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".