Expand description
ยงSnowID
A Rust implementation of a Snowflake-like ID generator with 42-bit timestamp.
Generate 64-bit unique identifiers that are:
- โก๏ธ Fast (~325ns per ID)
- ๐ Time-sorted
- ๐ Monotonic
- ๐ Thread-safe
- ๐ Distributed-ready
Modulesยง
- base62
- Base62 encoding and decoding for
SnowIDvalues
Structsยง
- SnowID
- Main ID generator with cache-line alignment
- SnowID
Config - Configuration for
SnowIDgenerator Copy-optimized with const-evaluable fields - SnowID
Extractor SnowIDcomponent extractor- TryGenerate
Error - Error returned by non-blocking generation APIs when the current millisecond is exhausted.
Enumsยง
- SnowID
Error - Represents errors that can occur during
SnowIDoperations