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<impl Stream<Item = Result<AcceptedInvocation<Self::Context, (String, String, u64, u64), Self::Subject, <Self::Acceptor as Acceptor>::Transmitter>>> + Send>> + 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<impl Stream<Item = Result<AcceptedInvocation<Self::Context, (String, String, u64), Self::Subject, <Self::Acceptor as Acceptor>::Transmitter>>> + Send>> + 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<impl Stream<Item = Result<AcceptedInvocation<Self::Context, (String, String, u64, u64), Self::Subject, <Self::Acceptor as Acceptor>::Transmitter>>> + Send>> + 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<impl Stream<Item = Result<AcceptedInvocation<Self::Context, (String, String, u64), Self::Subject, <Self::Acceptor as Acceptor>::Transmitter>>> + Send>> + Send
Object Safety§
This trait is not object safe.