async_rs/traits/runtime.rs
1use crate::traits::{Executor, Reactor};
2
3/// Marker supertrait for types that satisfy all requirements of a full async runtime.
4///
5/// A type implements `RuntimeKit` when it is both an [`Executor`] (can spawn and
6/// block on futures) and a [`Reactor`] (can perform async I/O and timers) and is
7/// [`Debug`](std::fmt::Debug). This trait has no methods of its own; it exists
8/// purely as a convenient single bound used by [`Runtime`](crate::Runtime) and
9/// [`RuntimeParts`](crate::util::RuntimeParts).
10pub trait RuntimeKit: Executor + Reactor + std::fmt::Debug {}