Struct dharma::event_loop::EventLoopInfo
[−]
[src]
pub struct EventLoopInfo<P, C> where
P: Clone + Send + 'static,
C: Clone + Send + Sync + 'static, { /* fields omitted */ }
Context for creation of EventLoop
.
Methods
impl<P, C> EventLoopInfo<P, C> where
P: Clone + Send + Debug,
C: Clone + Send + Sync,
[src]
P: Clone + Send + Debug,
C: Clone + Send + Sync,
fn new(name: String, signaler: Signaler<P>, context: C) -> Self
Constructs new EventLoopInfo
.
fn add_module(&mut self, constructor: Box<ModuleConstructor<T = P, C = C>>)
Add module constructor.
fn start(self) -> Result<JoinHandle<()>>
Consume EventLoopInfo
to start event loop in new thread.