pub enum CloneSource {
Http(RemoteUrl),
Ssh(RemoteUrl),
Git(RemoteUrl),
Local {
git_dir: PathBuf,
common_git_dir: PathBuf,
},
}Expand description
How clone reaches the remote it is cloning from.
The caller resolves the remote (URL rewriting, repository discovery — all
process-state dependent) and hands clone a concrete transport.
Variants§
Http(RemoteUrl)
A smart-HTTP(S) remote at the given already-resolved URL.
Ssh(RemoteUrl)
An SSH remote at the given already-resolved URL. Fetched by spawning ssh
(the credential seam is unused — the ssh program owns authentication).
Git(RemoteUrl)
A native anonymous git:// remote at the given already-resolved URL.
Local
A local repository served in-process from git_dir.
Auto Trait Implementations§
impl Freeze for CloneSource
impl RefUnwindSafe for CloneSource
impl Send for CloneSource
impl Sync for CloneSource
impl Unpin for CloneSource
impl UnsafeUnpin for CloneSource
impl UnwindSafe for CloneSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more