pub enum SetUrlError {
RemoteNotFound,
NoMatch,
DeleteNoMatch,
DeleteAllFetchUrls,
MultipleValues,
}Expand description
Why a set_url call could not be applied.
Each variant corresponds to a distinct git remote set-url failure; the
caller maps them to git’s exact diagnostics and exit status. config is
left unchanged when any of these is returned.
Variants§
RemoteNotFound
No [remote "<name>"] section exists.
NoMatch
Replace found no URL matching the old-URL pattern.
DeleteNoMatch
Delete found no URL matching the pattern.
DeleteAllFetchUrls
Delete (on fetch URLs) would remove every non-push URL.
MultipleValues
Set/Replace found multiple values where a single one was required.
Trait Implementations§
Source§impl Clone for SetUrlError
impl Clone for SetUrlError
Source§fn clone(&self) -> SetUrlError
fn clone(&self) -> SetUrlError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetUrlError
impl Debug for SetUrlError
impl Eq for SetUrlError
Source§impl PartialEq for SetUrlError
impl PartialEq for SetUrlError
impl StructuralPartialEq for SetUrlError
Auto Trait Implementations§
impl Freeze for SetUrlError
impl RefUnwindSafe for SetUrlError
impl Send for SetUrlError
impl Sync for SetUrlError
impl Unpin for SetUrlError
impl UnsafeUnpin for SetUrlError
impl UnwindSafe for SetUrlError
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