1
2
3
4
5
6
7
8
9
10
11
12
use std::future::Future;

use super::scope::ReactorScoped;

/// A reactor worker.
pub trait Reactor: Future<Output = ()> {
    /// The Reactor Scope
    type Scope: ReactorScoped;

    /// Creates a reactor worker.
    fn create(scope: Self::Scope) -> Self;
}