Skip to main content

RepositoryLike

Trait RepositoryLike 

Source
pub trait RepositoryLike {
    // Required methods
    fn open(&self, gitdir: &GitDir) -> Result<OpenRepository>;
    fn git_clone(&self, repo_details: &RepoDetails) -> Result<OpenRepository>;
}

Required Methods§

Source

fn open(&self, gitdir: &GitDir) -> Result<OpenRepository>

Opens the repository.

§Errors

Will return an Err if the repository can’t be opened.

Source

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".

Implementors§