pub async fn spawn_real_or_mock_keystore<F>(
    func: F
) -> LairResult<(MetaLairClient, MockLairControl)>
where F: Fn(LairApiEnum) -> LairResult<LairApiEnum> + Send + Sync + 'static,
Expand description

Spawn a test keystore that can switch between mocked and real. It starts off as real and can be switched to the given callback mock using the MockLairControl.