calimero-context-primitives 0.10.0

Core Calimero infrastructure and tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use calimero_primitives::context::ContextId;
use tokio::sync::OwnedMutexGuard;

pub mod client;
pub mod messages;

#[derive(Debug)]
pub enum ContextAtomic {
    Lock,
    Held(ContextAtomicKey),
}

#[derive(Debug)]
pub struct ContextAtomicKey(pub OwnedMutexGuard<ContextId>);