pub struct Runtime<H: Handler, P: Poll> { /* private fields */ }Expand description
Internal Reactor runtime which is run in a dedicated thread.
Use this structure direactly only if you’d like to have the full control over the reactor thread.
This runtime structure does not spawns a thread and is blocking. It implements the actual reactor event loop.
Implementations§
source§impl<H: Handler, P: Poll> Runtime<H, P>
impl<H: Handler, P: Poll> Runtime<H, P>
sourcepub fn controller(&self) -> Controller<H::Command>
pub fn controller(&self) -> Controller<H::Command>
Provides a copy of a Controller object which exposes an API to the reactor and a service
running inside of its thread.
See Handler::Command for the details.