Function gix_transport::connect
source · pub fn connect<Url, E>(
url: Url,
options: Options
) -> Result<Box<dyn Transport + Send>, Error>
Available on crate feature
blocking-client
and (crate feature blocking-client
, or crate features async-client
and async-std
) only.Expand description
A general purpose connector connecting to a repository identified by the given url
.
This includes connections to local repositories, repositories over ssh, git daemons, and if compiled in connections to git repositories over https.
Use options
to further control specifics of the transport resulting from the connection.