pub enum FetchSource {
Http(RemoteUrl),
Ssh(RemoteUrl),
Git(RemoteUrl),
Local {
git_dir: PathBuf,
common_git_dir: PathBuf,
},
}Expand description
How a fetch obtains refs and objects from the remote.
The caller resolves the remote (URL rewriting, repository discovery — all
process-state dependent) and hands fetch 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 FetchSource
impl RefUnwindSafe for FetchSource
impl Send for FetchSource
impl Sync for FetchSource
impl Unpin for FetchSource
impl UnsafeUnpin for FetchSource
impl UnwindSafe for FetchSource
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