Struct solana_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.
Methods
impl RpcEventLoop
[src]
impl RpcEventLoop
pub fn spawn() -> Result<Self>
[src]
pub fn spawn() -> Result<Self>
Spawns a new thread with the EventLoop
.
pub fn with_name(name: Option<String>) -> Result<Self>
[src]
pub fn with_name(name: Option<String>) -> Result<Self>
Spawns a new named thread with the EventLoop
.
pub fn executor(&self) -> TaskExecutor
[src]
pub fn executor(&self) -> TaskExecutor
Get executor for this event loop.
pub fn wait(self) -> Result<()>
[src]
pub fn wait(self) -> Result<()>
Blocks current thread and waits until the event loop is finished.
pub fn close(self)
[src]
pub fn close(self)
Finishes this event loop.
Trait Implementations
impl Debug for RpcEventLoop
[src]
impl Debug for RpcEventLoop
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for RpcEventLoop
[src]
impl Drop for RpcEventLoop
Auto Trait Implementations
impl Send for RpcEventLoop
impl Send for RpcEventLoop
impl Sync for RpcEventLoop
impl Sync for RpcEventLoop