trine-kv 0.6.0

Embedded LSM MVCC key-value database.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Result of validating a requested durable state transition against the
/// currently stored record.
///
/// Domain records decide whether the transition is legal and whether the
/// stored state already represents the requested outcome. Callers only perform
/// irreversible work for `Apply`; `AlreadyApplied` makes recovery idempotent
/// without treating an independently completed operation as corruption.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub(crate) enum DurableTransition<T> {
    Apply(T),
    AlreadyApplied(T),
}