tsoracle-core 0.1.0

Sync algorithm core for tsoracle: window allocator, 46/18-bit timestamp packing, monotonicity invariants.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Core algorithm for tsoracle.
//!
//! No I/O, no async, no tokio. Runtime-neutral. Property-testable in microseconds.

mod allocator;
mod clock;
mod epoch;
mod timestamp;

pub mod docs;

pub use allocator::{Allocator, CoreError, WindowGrant};
pub use clock::{Clock, SystemClock};
pub use epoch::Epoch;
pub use timestamp::{LOGICAL_MAX, PHYSICAL_MS_MAX, Timestamp, TimestampError};

#[cfg(any(test, feature = "test-clock"))]
pub use clock::testing;