pub async fn with_crypt_service<R, Fut: Future<Output = Result<R, Error>>>(
policy: Policy,
f: impl FnOnce(ClientEnd<CryptMarker>) -> Fut,
) -> Result<R, Error>
Expand description
Runs f
with a scoped crypt service instance. The instance will be automatically terminated on
completion.