lair_keystore_api 0.0.1-alpha.2

secret lair private keystore types
Documentation
1
2
3
4
5
6
7
static NEXT_MSG_ID: std::sync::atomic::AtomicU64 =
    std::sync::atomic::AtomicU64::new(0);

/// Get a new process-unique u64 message id.
pub fn next_msg_id() -> u64 {
    NEXT_MSG_ID.fetch_add(1, std::sync::atomic::Ordering::Relaxed)
}