Skip to main content

runtime

Function runtime 

Source
pub fn runtime() -> Result<Runtime, CliError>
Expand description

Builds a current-thread tokio runtime for one client verb.

Current-thread on purpose: a client verb is one socket and one request/reply at a time, and spinning up a thread pool to wait on a single recv is pure startup latency on a command a user runs interactively.

ยงErrors

CliError::Io if the runtime cannot be built.