GlobalSearcher

Trait GlobalSearcher 

Source
pub trait GlobalSearcher: Send + Sync {
    // Required method
    fn get_global<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        app_id: &'life1 str,
        key: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<(Value, String)>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Allows searching for keys across all personas.

Required Methods§

Source

fn get_global<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, app_id: &'life1 str, key: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(Value, String)>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Finds a key within an app by searching all personas. Returns the value and the persona ID where it was found.

Implementors§