Expand description
A collection of utilities to share among elfo-* crates.
Modules§
- time
- Provides
InstantandSystemTimetypes.
Macros§
- cooldown
- A simple macro to check if a cooldown period has passed since the last time.
- ward
- Returns the contents of a
Option<T>’sSome(T), otherwise it returns early from the function. Can alternatively have anelsebranch, or an alternative “early return” statement, likebreakorcontinuefor loops.
Structs§
- Cache
Padded - Pads and aligns a value to the length of a cache line.
- Rate
Limiter - A rate limiter implementing GCRA.
Enums§
- Rate
Limit - A rate limit configuration.