Trait cipherstash_client::async_value::AsyncAccessor
source · pub trait AsyncAccessor {
type Value;
type Error;
fn get_value<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Value, Self::Error>> + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait that abstracts getting a value asynchrously.
It returns a result with a reference counted pointer to some value.