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§

Required Methods§

source

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,

source

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,

source

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,

source

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,

source

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,

source

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,

source

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,

source

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.

Implementors§

source§

impl<T: Client> Eventual for T

§

type DeleteInvocationStream = Pin<Box<dyn Stream<Item = Result<AcceptedInvocation<<T as Client>::Context, (String, String), <T as Client>::Subject, <<T as Client>::Acceptor as Acceptor>::Transmitter>, Error>> + Send>>

§

type ExistsInvocationStream = Pin<Box<dyn Stream<Item = Result<AcceptedInvocation<<T as Client>::Context, (String, String), <T as Client>::Subject, <<T as Client>::Acceptor as Acceptor>::Transmitter>, Error>> + Send>>

§

type GetInvocationStream = Pin<Box<dyn Stream<Item = Result<AcceptedInvocation<<T as Client>::Context, (String, String), <T as Client>::Subject, <<T as Client>::Acceptor as Acceptor>::Transmitter>, Error>> + Send>>

§

type SetInvocationStream = Pin<Box<dyn Stream<Item = Result<AcceptedInvocation<<T as Client>::Context, (String, String, Box<dyn Stream<Item = Result<Vec<u8>, Error>> + Unpin + Send>), <T as Client>::Subject, <<T as Client>::Acceptor as Acceptor>::Transmitter>, Error>> + Send>>