Struct hglib::connection::Connection [] [src]

pub struct Connection { /* fields omitted */ }

A handle to a running command server instance.

Methods

impl Connection
[src]

Spawns a new command server process.

Reads and parses the server hello message. Returns a tuple of ([capabilities], encoding).

Errors

Returns an I/O error if reading or parsing the hello message failed.

Sends the given command to Mercurial, returning an iterator over the results.

Shuts down the command server process.