Crate foyer_common

Crate foyer_common 

Source
Expand description

Shared components and utils for foyer.

Modules§

assert
Allow to enable debug assertions in release profile with feature “strict_assertion”.
asyncify
The util that convert the blocking call to async call.
bits
The bitwise utils.
buf
The bytes::Buf and bytes::BufMut extensions.
code
The trait for the key and value encoding and decoding.
event
Components for monitoring internal events.
future
Future extensions.
hasher
Provisioned hashers.
metrics
The shared metrics for foyer.
properties
Entry-level properties.
rate
A rate limiter that returns the wait duration for limitation.
rated_ticket
A ticket-based rate limiter.
runtime
A runtime that automatically shutdown itself on drop.
utils
Useful helpers.

Macros§

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