Trait wrpc_interface_keyvalue::Atomic
source · pub trait Atomic: Client {
// Provided 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::InvocationStream<(String, String, u64, u64)>>> + 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::InvocationStream<(String, String, u64)>>> + Send { ... }
}Provided 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::InvocationStream<(String, String, u64, u64)>>> + 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::InvocationStream<(String, String, u64)>>> + Send
Object Safety§
This trait is not object safe.