kmp-domain 0.18.0

Domain model of the Kernel Memory Protocol: aggregates, value objects, repositories and projections, with no IO
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// The card revision a writer believes it is replacing.
///
/// There is no "whatever is there" option on purpose. Two readers condensing
/// the same node at the same time must not silently overwrite each other:
/// one of them declared a state that is no longer true and is told so.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum NodeCardExpectation {
    /// No card is stored for this node and language yet.
    Absent,
    /// The stored card is exactly this revision.
    CardRevision(u64),
}