Trait wrpc_interface_keyvalue::Atomic
source · pub trait Atomic: Client {
type CompareAndSwapInvocationStream;
type IncrementInvocationStream;
// Required methods
fn invoke_compare_and_swap(
&self,
bucket: String,
key: String,
old: u64,
new: u64
) -> impl Future<Output = Result<(Result<bool, String>, Self::Transmission)>> + Send;
fn serve_compare_and_swap(
&self
) -> impl Future<Output = Result<Self::CompareAndSwapInvocationStream>> + Send;
fn invoke_increment(
&self,
bucket: String,
key: String,
delta: u64
) -> impl Future<Output = Result<(Result<u64, String>, Self::Transmission)>> + Send;
fn serve_increment(
&self
) -> impl Future<Output = Result<Self::IncrementInvocationStream>> + Send;
}Required Associated Types§
Required Methods§
fn invoke_compare_and_swap( &self, bucket: String, key: String, old: u64, new: u64 ) -> impl Future<Output = Result<(Result<bool, String>, Self::Transmission)>> + Send
fn serve_compare_and_swap( &self ) -> impl Future<Output = Result<Self::CompareAndSwapInvocationStream>> + Send
fn invoke_increment( &self, bucket: String, key: String, delta: u64 ) -> impl Future<Output = Result<(Result<u64, String>, Self::Transmission)>> + Send
fn serve_increment( &self ) -> impl Future<Output = Result<Self::IncrementInvocationStream>> + Send
Object Safety§
This trait is not object safe.