timeflake-rs 0.3.0

Timeflake is a 128-bit, roughly-ordered, URL-safe UUID. Inspired by Twitter's Snowflake, Instagram's ID and Firebase's PushID.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// SPDX-FileCopyrightText: 2022 perillamint
//
// SPDX-License-Identifier: MIT

use custom_error::custom_error;

custom_error! { pub TimeflakeError
    RNGError{msg: String} = "RNG Error: {msg}",
    SystemTimeError{msg: String} = "SystemTime Error: {msg}",
    MalformedData{msg: String} = "Malformed data: {msg}",
}