pub enum ClonePlanError {
DestinationExists {
path: PathBuf,
},
MonorepoRequiresHosted {
remote: String,
},
RemoteLooksLikeMissingLocalPath {
remote: String,
},
InvalidRemoteUrl {
remote: String,
},
UnsupportedOption {
flag: UnsupportedCloneFlag,
mode: &'static str,
value: Option<String>,
},
}Expand description
Failures from pure clone planning.
Variants§
DestinationExists
Destination path already exists.
MonorepoRequiresHosted
--recursive requires a hosted/network remote.
RemoteLooksLikeMissingLocalPath
Unparsed remote that looks like a local path (missing source).
InvalidRemoteUrl
Unparsed remote that is neither local-shaped nor a git URL.
UnsupportedOption
Option rejected for the selected mode.
Trait Implementations§
Source§impl Clone for ClonePlanError
impl Clone for ClonePlanError
Source§fn clone(&self) -> ClonePlanError
fn clone(&self) -> ClonePlanError
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 ClonePlanError
impl Debug for ClonePlanError
Source§impl Display for ClonePlanError
impl Display for ClonePlanError
impl Eq for ClonePlanError
Source§impl Error for ClonePlanError
impl Error for ClonePlanError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ClonePlanError
impl PartialEq for ClonePlanError
impl StructuralPartialEq for ClonePlanError
Auto Trait Implementations§
impl Freeze for ClonePlanError
impl RefUnwindSafe for ClonePlanError
impl Send for ClonePlanError
impl Sync for ClonePlanError
impl Unpin for ClonePlanError
impl UnsafeUnpin for ClonePlanError
impl UnwindSafe for ClonePlanError
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