Struct jsonrpc_server_utils::reactor::RpcEventLoop [−][src]
pub struct RpcEventLoop { /* fields omitted */ }A handle to running event loop. Dropping the handle will cause event loop to finish.
Implementations
impl RpcEventLoop[src]
impl RpcEventLoop[src]pub fn spawn() -> Result<Self>[src]
Spawns a new thread with the EventLoop.
pub fn with_name(name: Option<String>) -> Result<Self>[src]
Spawns a new named thread with the EventLoop.
pub fn executor(&self) -> TaskExecutor[src]
Get executor for this event loop.
pub fn wait(self) -> Result<(), ()>[src]
Blocks current thread and waits until the event loop is finished.
pub fn close(self)[src]
Finishes this event loop.
Trait Implementations
impl Drop for RpcEventLoop[src]
impl Drop for RpcEventLoop[src]