Function gitoxide_core::net::connect
source · pub fn connect<Url, E>(
url: Url,
desired_version: Protocol
) -> Result<Box<dyn Transport + Send + 'static, Global>, Error>where
Url: TryInto<Url, Error = E>,
Error: From<E>,Available on crate features
async-client or blocking-client 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][crate::client::http::connect()].
Use desired_version to set the desired protocol version to use when connecting, but note that the server may downgrade it.