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