2026-01-25 13:38:34 +00:00
|
|
|
pub mod actor;
|
2026-01-23 05:00:57 +00:00
|
|
|
|
2026-01-25 13:38:34 +00:00
|
|
|
pub(crate) mod error;
|
|
|
|
|
pub use error::Error;
|
2026-01-23 05:00:57 +00:00
|
|
|
|
2026-01-25 13:38:34 +00:00
|
|
|
mod ring_buffer;
|
|
|
|
|
mod router;
|
|
|
|
|
pub mod runtime;
|
2025-11-25 00:39:17 +00:00
|
|
|
|
2026-01-23 05:00:57 +00:00
|
|
|
#[cfg(feature = "getrandom")]
|
2026-01-25 13:38:34 +00:00
|
|
|
pub(crate) fn get_random(buf: &mut [u8]) {
|
2026-01-23 05:00:57 +00:00
|
|
|
getrandom::getrandom(buf).unwrap()
|
|
|
|
|
}
|
2025-11-25 00:39:17 +00:00
|
|
|
|
2026-01-25 13:38:34 +00:00
|
|
|
/// FIXME: remove hard coded defaults
|
2026-01-23 05:00:57 +00:00
|
|
|
/// The strategy for message processing is such:
|
2026-01-25 13:38:34 +00:00
|
|
|
///
|
|
|
|
|
/// ```ignore
|
2026-01-23 05:00:57 +00:00
|
|
|
/// if total_messages < WATERLEVEL:
|
|
|
|
|
/// process all
|
|
|
|
|
/// else
|
2026-01-25 13:38:34 +00:00
|
|
|
/// process total_messages >> 1
|
|
|
|
|
/// ```
|
2026-01-23 05:00:57 +00:00
|
|
|
const WATERLEVEL: usize = 10;
|