Trait wrpc_interface_keyvalue::Eventual
source · pub trait Eventual: Client {
type DeleteInvocationStream;
type ExistsInvocationStream;
type GetInvocationStream;
type SetInvocationStream;
// Required methods
fn invoke_delete(
&self,
bucket: String,
key: String
) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send;
fn serve_delete(
&self
) -> impl Future<Output = Result<Self::DeleteInvocationStream>> + Send;
fn invoke_exists(
&self,
bucket: String,
key: String
) -> impl Future<Output = Result<(Result<bool, String>, Self::Transmission)>> + Send;
fn serve_exists(
&self
) -> impl Future<Output = Result<Self::ExistsInvocationStream>> + Send;
fn invoke_get(
&self,
bucket: String,
key: String
) -> impl Future<Output = Result<(Result<Option<IncomingInputStream>, String>, Self::Transmission)>> + Send;
fn serve_get(
&self
) -> impl Future<Output = Result<Self::GetInvocationStream>> + Send;
fn invoke_set(
&self,
bucket: String,
key: String,
value: impl Stream<Item = Bytes> + Send + 'static
) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send;
fn serve_set(
&self
) -> impl Future<Output = Result<Self::SetInvocationStream>> + Send;
}Required Associated Types§
type DeleteInvocationStream
type ExistsInvocationStream
type GetInvocationStream
type SetInvocationStream
Required Methods§
fn invoke_delete( &self, bucket: String, key: String ) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send
fn serve_delete( &self ) -> impl Future<Output = Result<Self::DeleteInvocationStream>> + Send
fn invoke_exists( &self, bucket: String, key: String ) -> impl Future<Output = Result<(Result<bool, String>, Self::Transmission)>> + Send
fn serve_exists( &self ) -> impl Future<Output = Result<Self::ExistsInvocationStream>> + Send
fn invoke_get( &self, bucket: String, key: String ) -> impl Future<Output = Result<(Result<Option<IncomingInputStream>, String>, Self::Transmission)>> + Send
fn serve_get( &self ) -> impl Future<Output = Result<Self::GetInvocationStream>> + Send
fn invoke_set( &self, bucket: String, key: String, value: impl Stream<Item = Bytes> + Send + 'static ) -> impl Future<Output = Result<(Result<(), String>, Self::Transmission)>> + Send
fn serve_set( &self ) -> impl Future<Output = Result<Self::SetInvocationStream>> + Send
Object Safety§
This trait is not object safe.