Skip to main content

SecretStoreFuture

Type Alias SecretStoreFuture 

Source
pub type SecretStoreFuture<'a, T> = Pin<Box<dyn Future<Output = Result<T, SecretStoreError>> + Send + 'a>>;
Expand description

Type-erased future returned by DeRecSecretStore methods.

Send on native targets so multi-threaded executors (e.g. tokio::spawn) can take it; under the ffi feature or wasm32 the Send bound is dropped because callbacks cross an FFI boundary or run in a single-threaded host. Sync backends can return Box::pin(std::future::ready(...)) at zero cost.

Aliased Typeยง

pub struct SecretStoreFuture<'a, T> { /* private fields */ }