File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
//! Runtime components
2
2
//!
3
- //! The traits and types within this module are used to allow plugging in
4
- //! runtime types. These include:
3
+ //! This module provides traits and types that allow hyper to be runtime-agnostic.
4
+ //! By abstracting over async runtimes, hyper can work with different executors, timers, and IO transports.
5
5
//!
6
- //! - Executors
7
- //! - Timers
8
- //! - IO transports
6
+ //! The main components in this module are:
7
+ //!
8
+ //! - **Executors**: Traits for spawning and running futures, enabling integration with any async runtime.
9
+ //! - **Timers**: Abstractions for sleeping and scheduling tasks, allowing time-based operations to be runtime-independent.
10
+ //! - **IO Transports**: Traits for asynchronous reading and writing, so hyper can work with various IO backends.
11
+ //!
12
+ //! By implementing these traits, you can customize how hyper interacts with your chosen runtime environment.
13
+ //!
14
+ //! To learn more, [check out the runtime guide](https://hyper.rs/guides/1/init/runtime/).
9
15
10
16
pub mod bounds;
11
17
mod io;
You can’t perform that action at this time.
0 commit comments