mz_storage_types::connections

Trait 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§