pub trait UserService {
    // Required method
    fn handle_query<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        context: &'life1 QueryContext,
        runtime: &'life2 dyn ServiceRuntime,
        argument: &'life3 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ExecutionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

The public entry points provided by the service part of an application.

Required Methods§

source

fn handle_query<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 QueryContext, runtime: &'life2 dyn ServiceRuntime, argument: &'life3 [u8] ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, ExecutionError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Executes unmetered read-only queries on the state of this application.

Implementors§