pub trait RepositoryLike {
// Required methods
fn open(&self, gitdir: &GitDir) -> Result<OpenRepository>;
fn git_clone(&self, repo_details: &RepoDetails) -> Result<OpenRepository>;
}Required Methods§
Sourcefn open(&self, gitdir: &GitDir) -> Result<OpenRepository>
fn open(&self, gitdir: &GitDir) -> Result<OpenRepository>
Sourcefn git_clone(&self, repo_details: &RepoDetails) -> Result<OpenRepository>
fn git_clone(&self, repo_details: &RepoDetails) -> Result<OpenRepository>
Clones the git repository from the remote server.
§Errors
Will return an Err if there are any network connectivity issues
connecting with the server.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".