Modules§
- prelude
- sealed
- Collections that never leak references to their content, and therefore can be safely accessed via shared references.
- shared
- Abstractions for accessing data shared between multiple tasks in a safe manner.
- split
tokio - Utilities for splitting
AsyncRead + AsyncWritetypes into separate read and write halves. - stopwatch
- Utilities for measuring the duration of operations and logging if they exceed a specified threshold.
- sync
- Synchronization primitives for single-threaded async programming.
Macros§
- debug_
stopwatch - Creates a
Stopwatchthat will log a debug message if the elapsed time exceeds the threshold. - define_
with - Convenience macro for invoking
Shared::with()method. - define_
with_ unchecked - Convenience macro for invoking
UnsafeShared::with_unchecked()method. - error_
stopwatch - Creates a
Stopwatchthat will log an error message if the elapsed time exceeds the threshold. - info_
stopwatch - Creates a
Stopwatchthat will log an info message if the elapsed time exceeds the threshold. - millisec
- Shortcut for
std::time::Duration::from_millis. - min
- Shortcut for
std::time::Duration::from_secs. - sec
- Shortcut for
std::time::Duration::from_secs. - trace_
stopwatch - Creates a
Stopwatchthat will log a trace message if the elapsed time exceeds the threshold. - warn_
stopwatch - Creates a
Stopwatchthat will log a warning message if the elapsed time exceeds the threshold.