Expand description
Raw command server API.
Creating a Connection
spawns an instance
of the command server and allows you to interact with it. When it
starts up, the command server sends a hello message on its output
channel, which can be read and parsed by
read_hello()
:
let mut conn = Connection::new().ok().expect("failed to start command server");
let (capabilities, encoding) =
conn.read_hello().ok().expect("failed to read server hello");
Structsยง
- Command
Run - An iterator over the results of a single Mercurial command.
- Connection
- A handle to a running command server instance.