Reference
API reference
Where the full type-level API lives, and a quick index of the public surface.
The authoritative, always-current API reference is generated from the source on docs.rs:
This page is a map of where things live.
Module index
| Path | Feature | Key items |
|---|---|---|
distkit | - | DistkitRedisKey, CounterComparator, DistkitError |
distkit::counter | counter | CounterTrait, StrictCounter, LaxCounter, CounterOptions |
distkit::icounter | instance-aware-counter | InstanceAwareCounterTrait, StrictInstanceAwareCounter, LaxInstanceAwareCounter and their options |
distkit::lock | lock | Mutex, RwLock, guards, LockOptions, LockGuardState, LockError |
distkit::trypema | trypema | Re-export of the trypema crate |
Core types
DistkitRedisKey- validated key wrapper. See Keys.CounterComparator-Eq/Lt/Gt/Ne/Nilfor conditional writes. See Comparators.DistkitError- the one error type everything returns. See Errors.
Traits to keep in scope
Methods live on traits, so the relevant trait must be imported to call them:
distkit::counter::CounterTraitdistkit::icounter::InstanceAwareCounterTrait

