distkit
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:

docs.rs/distkit - full signatures, trait bounds, and item-level docs.

This page is a map of where things live.

Module index

PathFeatureKey items
distkit-DistkitRedisKey, CounterComparator, DistkitError
distkit::countercounterCounterTrait, StrictCounter, LaxCounter, CounterOptions
distkit::icounterinstance-aware-counterInstanceAwareCounterTrait, StrictInstanceAwareCounter, LaxInstanceAwareCounter and their options
distkit::locklockMutex, RwLock, guards, LockOptions, LockGuardState, LockError
distkit::trypematrypemaRe-export of the trypema crate

Core types

  • DistkitRedisKey - validated key wrapper. See Keys.
  • CounterComparator - Eq / Lt / Gt / Ne / Nil for 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::CounterTrait
  • distkit::icounter::InstanceAwareCounterTrait