tiltflake 0.3.0

Tiltflake is a distributed database that uses the flake algorithm to generate unique IDs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use chrono::ParseError;

#[derive(Debug, Eq, PartialEq, thiserror::Error)]
pub enum TiltflakeError {
	#[error("RFC3339 parse error: {0}")]
	Rfc3339ParseError(#[from] ParseError),

	#[error("Timestamp is before the custom epoch")]
	TimestampBeforeEpoch,

	#[error("Timestamp exceeds the 41-bit limit")]
	TimestampTooLarge,
}