lair_keystore_api 0.0.1-alpha.2

secret lair private keystore types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::*;

/// Apply some tracing to spawned task loops.
pub fn err_spawn<F>(hint: &'static str, f: F)
where
    F: std::future::Future<Output = LairResult<()>> + 'static + Send,
{
    tokio::task::spawn(async move {
        match f.await {
            Ok(_) => debug!("FUTURE {} ENDED Ok!!!", hint),
            Err(e) => warn!("FUTURE {} ENDED Err: {:?}", hint, e),
        }
    });
}