async-rs 0.8.10

Async runtime abstraction
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::traits::{Executor, Reactor};

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