Skip to main content

Module setting

Module setting 

Source
Expand description

Global runtime settings.

The C reference exposes a single tunable, msgs_per_sec, accessed through paired msgs_per_sec() / set_msgs_per_sec() functions. The Rust port stores it in an AtomicU32 so the getter and setter are wait-free and lock-free.

Constants§

DEFAULT_MSGS_PER_SEC
Default value for msgs_per_sec.

Functions§

msgs_per_sec
Return the current per-connection message-rate ceiling.
set_msgs_per_sec
Update the per-connection message-rate ceiling.