pub enum FailedRefExportReason {
InvalidGitName,
ConflictedOldState,
OnRootCommit,
DeletedInJjModifiedInGit,
AddedInJjAddedInGit,
ModifiedInJjDeletedInGit,
FailedToDelete(Box<Error>),
FailedToSet(Box<Error>),
}
Expand description
The reason we failed to export a ref to Git.
Variants§
InvalidGitName
The name is not allowed in Git.
ConflictedOldState
The ref was in a conflicted state from the last import. A re-import should fix it.
OnRootCommit
The ref points to the root commit, which Git doesn’t have.
DeletedInJjModifiedInGit
We wanted to delete it, but it had been modified in Git.
AddedInJjAddedInGit
We wanted to add it, but Git had added it with a different target
ModifiedInJjDeletedInGit
We wanted to modify it, but Git had deleted it
FailedToDelete(Box<Error>)
Failed to delete the ref from the Git repo
FailedToSet(Box<Error>)
Failed to set the ref in the Git repo
Trait Implementations§
Source§impl Debug for FailedRefExportReason
impl Debug for FailedRefExportReason
Source§impl Display for FailedRefExportReason
impl Display for FailedRefExportReason
Source§impl Error for FailedRefExportReason
impl Error for FailedRefExportReason
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()
Auto Trait Implementations§
impl Freeze for FailedRefExportReason
impl !RefUnwindSafe for FailedRefExportReason
impl Send for FailedRefExportReason
impl Sync for FailedRefExportReason
impl Unpin for FailedRefExportReason
impl !UnwindSafe for FailedRefExportReason
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more