Trait mz_storage_types::connections::SecretsReaderExt

source ·
trait SecretsReaderExt {
    // Required methods
    fn read_in_task_if<'life0, 'async_trait>(
        &'life0 self,
        in_task: InTask,
        id: GlobalId,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn read_string_in_task_if<'life0, 'async_trait>(
        &'life0 self,
        in_task: InTask,
        id: GlobalId,
    ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

An extension trait for SecretsReader

Required Methods§

source

fn read_in_task_if<'life0, 'async_trait>( &'life0 self, in_task: InTask, id: GlobalId, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

SecretsReader::read, but optionally run in a task.

source

fn read_string_in_task_if<'life0, 'async_trait>( &'life0 self, in_task: InTask, id: GlobalId, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

SecretsReader::read_string, but optionally run in a task.

Implementations on Foreign Types§

source§

impl SecretsReaderExt for Arc<dyn SecretsReader>

source§

fn read_in_task_if<'life0, 'async_trait>( &'life0 self, in_task: InTask, id: GlobalId, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn read_string_in_task_if<'life0, 'async_trait>( &'life0 self, in_task: InTask, id: GlobalId, ) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§