Module generator
Source - thread_local
ulid and thread-local - Thread-local ULID generation utilities.
- AtomicSnowflakeGenerator
snowflake and atomic and target_has_atomic=64 - A lock-free Snowflake ID generator suitable for multi-threaded environments.
- BasicMonoUlidGenerator
ulid and basic - A monotonic ULID-style ID generator suitable for single-threaded
environments.
- BasicSnowflakeGenerator
snowflake and basic - A non-concurrent Snowflake ID generator suitable for single-threaded
environments.
- BasicUlidGenerator
ulid and basic - A non-monotonic ULID-style ID generator suitable for multi-threaded
environments.
- LockMonoUlidGenerator
ulid and lock - A lock-based monotonic ULID-style ID generator suitable for multi-threaded
environments.
- LockSnowflakeGenerator
snowflake and lock - A lock-based Snowflake ID generator suitable for multi-threaded
environments.
- Mutex
lock and non-parking-lot - A mutual exclusion primitive useful for protecting shared data
- MutexGuard
lock and non-parking-lot - An RAII implementation of a “scoped lock” of a mutex. When this structure is
dropped (falls out of scope), the lock will be unlocked.
- PoisonError
lock and non-parking-lot - A type of error which can be returned whenever a lock is acquired.
- Error
- All error variants that
ferroid can emit. - IdGenStatus
- Represents the result of attempting to generate a new Snowflake ID.
- SnowflakeGenerator
snowflake - A minimal interface for generating Snowflake IDs
- UlidGenerator
ulid - A minimal interface for generating Ulid IDs
- Result
- A result type that is infallible by default.