Crate foyer_common

source ·
Expand description

Shared components and utils for foyer.

Modules§

  • Allow enable debug assertions in release profile with feature “strict_assertion”.
  • The util that convert the blocking call to async call.
  • The bitwise utils.
  • The bytes::Buf and bytes::BufMut extensions.
  • The trait for the key and value encoding and decoding.
  • A concurrent count down util.
  • Components for monitoring internal events.
  • Future extensions.
  • The shared metrics for foyer.
  • A concurrent object pool.
  • The range extensions.
  • A rate limiter that returns the wait duration for limitation.
  • A ticket-based rate limiter.
  • A runtime that automatically shutdown itself on drop.
  • Tracing related components.
  • An async wait group implementation.

Macros§

  • Use debug_assert! by default. Use assert! when feature “strict_assertions” is enabled.
  • Use debug_assert_eq! by default. Use assert_eq! when feature “strict_assertions” is enabled.
  • Use debug_assert_ne! by default. Use assert_ne! when feature “strict_assertions” is enabled.