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