pub enum LsRemoteSource {
Http(RemoteUrl),
Ssh(RemoteUrl),
Git(RemoteUrl),
Local {
git_dir: PathBuf,
},
}Expand description
How ls_remote obtains the ref advertisements.
The caller resolves the remote (URL rewriting, repository discovery — all
process-state dependent) and hands ls_remote 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, listed 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 read directly from git_dir (refs and the object
database used to peel annotated tags both resolve from this $GIT_DIR,
matching git ls-remote against a local path).
Auto Trait Implementations§
impl Freeze for LsRemoteSource
impl RefUnwindSafe for LsRemoteSource
impl Send for LsRemoteSource
impl Sync for LsRemoteSource
impl Unpin for LsRemoteSource
impl UnsafeUnpin for LsRemoteSource
impl UnwindSafe for LsRemoteSource
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