Crate combid [−] [src]
Package combid generates numeric identifiers.
Structs
Generator |
Generator is an iterator which will generate combids using a thread-local RNG. |
TimeGenerator |
TimeGenerator is an iterator which will generate identifiers based in the current time. |
Enums
Error |
Functions
gen |
gen generates a Combid (Combined Identifier), a combination of a timestamp and some random bits. The timestamp ensures they are ordered chronologically, and the random bits ensure that each ID is unique, even if thousands of people are creating IDs at the same time. |
gen_timeid |
gen_timeid generates an identifier based in the current time. |