pub enum RemoteUrl {
Local(PathBuf),
File(PathBuf),
Git(String),
Ssh(String),
Http(String),
Https(String),
Bundle(PathBuf),
}Expand description
A parsed remote URL by transport kind.
Variants§
Local(PathBuf)
Scheme-less or relative filesystem path (not file://).
File(PathBuf)
file:// URL decoded to a filesystem path.
Git(String)
git:// daemon URL (stored verbatim for the transport).
Ssh(String)
ssh://, git+ssh://, or scp-style SSH URL.
Http(String)
http:// smart HTTP URL.
Https(String)
https:// smart HTTP URL.
Bundle(PathBuf)
On-disk git bundle file (detected by signature, not extension).
Implementations§
Source§impl RemoteUrl
impl RemoteUrl
Sourcepub fn as_wire_url(&self) -> Option<&str>
pub fn as_wire_url(&self) -> Option<&str>
Wire URL string for transports that take a URL (not local paths).
Sourcepub fn to_url_string(&self) -> String
pub fn to_url_string(&self) -> String
Original configured string form (paths normalized for display).
Trait Implementations§
impl Eq for RemoteUrl
impl StructuralPartialEq for RemoteUrl
Auto Trait Implementations§
impl Freeze for RemoteUrl
impl RefUnwindSafe for RemoteUrl
impl Send for RemoteUrl
impl Sync for RemoteUrl
impl Unpin for RemoteUrl
impl UnsafeUnpin for RemoteUrl
impl UnwindSafe for RemoteUrl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.