confitul 0.1.4

ConfitUL contains utilities for ConfitDB which is an experimental, distributed, real-time database, giving full control on conflict resolution.
Documentation
use std::hash::Hash;
use vclock::VClock;

#[derive(Debug, Clone)]
pub struct Versioned<C, V>
where
    C: Eq + Hash + Clone,
    V: Clone,
{
    pub version: VClock<C>,
    pub value: Option<V>,
}

#[derive(Clone, Copy)]
pub enum VersionedStatus {
    HasValue,
    WasKilled,
    NotExist,
}