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