moirai-pal 0.7.0

Platform Abstraction Layer for Moirai async I/O operations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::OnceLock;
use std::sync::atomic::AtomicU64;
use std::time::Instant;

/// Performance metrics for the reactor
#[derive(Debug, Default)]
pub struct ReactorMetrics {
    /// Total events processed
    pub events_processed: AtomicU64,
    /// Average event processing time (nanoseconds)
    pub avg_event_time_ns: AtomicU64,
    /// Peak number of registered file descriptors
    pub peak_fd_count: AtomicU64,
    /// Reactor uptime
    pub start_time: OnceLock<Instant>,
}