Module traits

Module traits 

Source
Expand description

base traits for implementing helper code

good use case could be for implementing different waiter functions or ways of getting ids from the base struct

Traitsยง

FromIdGenerator
defines how to generate self from an IdGenerator
Id
basic Snowflake structure
IdGenerator
basics of an id generator
IdGeneratorMut
similar to IdGenerator but allows for mutating
NextAvailId
for retrieving the duration of the next available id