pub fn connect(
host: &str,
path: BString,
desired_version: Protocol,
port: Option<u16>,
trace: bool,
) -> Result<Connection<TcpStream, TcpStream>, Error>
Available on crate feature
blocking-client
and (crate features blocking-client
or async-client
) only.Expand description
Connect to a git daemon running on host
and optionally port
and a repository at path
.
Use desired_version
to specify a preferred protocol to use, knowing that it can be downgraded by a server not supporting it.
If trace
is true
, all packetlines received or sent will be passed to the facilities of the gix-trace
crate.