1use std::future::Future; 2 3use super::scope::ReactorScoped; 4 5/// A reactor worker. 6pub trait Reactor: Future<Output = ()> { 7 /// The Reactor Scope 8 type Scope: ReactorScoped; 9 10 /// Creates a reactor worker. 11 fn create(scope: Self::Scope) -> Self; 12}