Expand description
ID generation utilities.
Modules§
- internal 🔒
Structs§
- Atomic
Gen - Manages the allocation of unique IDs.
- Gen
- Manages the allocation of unique IDs.
- IdAllocator
- Manages allocation of numeric IDs.
- IdAllocator
Inner BitSet - IdAllocator using a HiBitSet.
Enums§
- IdHandle
- A clone-able owned reference to an ID.
Constants§
- MAX_
ORG_ ID - Max (inclusive) connection id that can be produced.
- ORG_
ID_ OFFSET - Number of bits the org id is offset into a connection id.
Traits§
- IdAllocator
Inner - Common trait for id allocators.
- IdGenerator
- IdAllocator common traits.
Functions§
- conn_
id_ org_ uuid - Returns the portion of the org’s UUID present in connection id.
- org_
id_ conn_ bits - Extracts the lower 12 bits from an org id. These are later used as the [31, 20] bits of a connection id to help route cancellation requests.
- temp_id
- Generate a random temporary ID.
Type Aliases§
- Atomic
IdGen - A generator of u64-bit IDs.
- IdGen
- A generator of u64-bit IDs.