pub enum RecoverWorkspaceError {
Backend(BackendError),
Reset(ResetError),
RewriteRootCommit(RewriteRootCommit),
TransactionCommit(TransactionCommitError),
WorkspaceMissingWorkingCopy(WorkspaceNameBuf),
}
Expand description
An error while recovering a stale working copy.
Variants§
Backend(BackendError)
Backend error.
Reset(ResetError)
Error during checkout.
RewriteRootCommit(RewriteRootCommit)
Checkout attempted to modify the root commit.
TransactionCommit(TransactionCommitError)
Error during transaction.
WorkspaceMissingWorkingCopy(WorkspaceNameBuf)
Working copy commit is missing.
Trait Implementations§
Source§impl Debug for RecoverWorkspaceError
impl Debug for RecoverWorkspaceError
Source§impl Display for RecoverWorkspaceError
impl Display for RecoverWorkspaceError
Source§impl Error for RecoverWorkspaceError
impl Error for RecoverWorkspaceError
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 From<BackendError> for RecoverWorkspaceError
impl From<BackendError> for RecoverWorkspaceError
Source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
Source§impl From<ResetError> for RecoverWorkspaceError
impl From<ResetError> for RecoverWorkspaceError
Source§fn from(source: ResetError) -> Self
fn from(source: ResetError) -> Self
Converts to this type from the input type.
Source§impl From<RewriteRootCommit> for RecoverWorkspaceError
impl From<RewriteRootCommit> for RecoverWorkspaceError
Source§fn from(source: RewriteRootCommit) -> Self
fn from(source: RewriteRootCommit) -> Self
Converts to this type from the input type.
Source§impl From<TransactionCommitError> for RecoverWorkspaceError
impl From<TransactionCommitError> for RecoverWorkspaceError
Source§fn from(source: TransactionCommitError) -> Self
fn from(source: TransactionCommitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecoverWorkspaceError
impl !RefUnwindSafe for RecoverWorkspaceError
impl Send for RecoverWorkspaceError
impl Sync for RecoverWorkspaceError
impl Unpin for RecoverWorkspaceError
impl !UnwindSafe for RecoverWorkspaceError
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