pub trait Respond<S> {
    type Key: Serialize;
    type Response: Serialize + Send + Sync;

    // Required method
    fn respond<'life0, 'life1, 'async_trait>(
        &'life0 self,
        state: &'life1 S
    ) -> Pin<Box<dyn Future<Output = Result<(Self::Key, Self::Response)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

source

fn respond<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 S ) -> Pin<Box<dyn Future<Output = Result<(Self::Key, Self::Response)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

source§

impl<S> Respond<S> for Query
where S: StateReadDecode,