Enum jsonrpc_server_utils::reactor::UninitializedExecutor [−][src]
pub enum UninitializedExecutor {
Shared(TaskExecutor),
Unspawned,
}Possibly uninitialized event loop executor.
Variants
Shared instance of executor.
Event Loop should be spawned by the transport.
Implementations
impl UninitializedExecutor[src]
impl UninitializedExecutor[src]pub fn initialize(self) -> Result<Executor>[src]
Initializes executor.
In case there is no shared executor, will spawn a new event loop.
Dropping Executor closes the loop.
pub fn init_with_name<T: Into<String>>(self, name: T) -> Result<Executor>[src]
Initializes executor.
In case there is no shared executor, will spawn a new event loop.
Dropping Executor closes the loop.