pub enum WorktreeErrorCode {
Show 34 variants
InvalidRoot,
InvalidOptions,
RootBusy,
RecoveryRequired,
InvalidPlan,
OperationConflict,
PathExists,
PathMissing,
ReservedPath,
PathEscape,
SymlinkNotAllowed,
CrossFilesystem,
NotRegularFile,
HardlinkNotAllowed,
ReadOnlyFile,
SourceTooLarge,
TransactionTooLarge,
NonUtf8Source,
SourceHashMismatch,
ConcurrentModification,
EditRejected,
StageFailed,
DurabilityFailed,
CommitFailed,
RollbackFailed,
JournalCorrupt,
UndoNotFound,
UndoConflict,
UndoStoreFull,
UndoCorrupt,
UndoFailed,
WorkerPanicked,
Cancelled,
Io,
}Expand description
Stable machine-readable worktree failure categories.
Variants§
InvalidRoot
InvalidOptions
RootBusy
RecoveryRequired
InvalidPlan
OperationConflict
PathExists
PathMissing
ReservedPath
PathEscape
SymlinkNotAllowed
CrossFilesystem
NotRegularFile
HardlinkNotAllowed
ReadOnlyFile
SourceTooLarge
TransactionTooLarge
NonUtf8Source
SourceHashMismatch
ConcurrentModification
EditRejected
StageFailed
DurabilityFailed
CommitFailed
RollbackFailed
JournalCorrupt
UndoNotFound
UndoConflict
UndoStoreFull
UndoCorrupt
UndoFailed
WorkerPanicked
Cancelled
Io
Implementations§
Trait Implementations§
Source§impl Clone for WorktreeErrorCode
impl Clone for WorktreeErrorCode
Source§fn clone(&self) -> WorktreeErrorCode
fn clone(&self) -> WorktreeErrorCode
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 moreimpl Copy for WorktreeErrorCode
Source§impl Debug for WorktreeErrorCode
impl Debug for WorktreeErrorCode
Source§impl Display for WorktreeErrorCode
impl Display for WorktreeErrorCode
impl Eq for WorktreeErrorCode
Source§impl Hash for WorktreeErrorCode
impl Hash for WorktreeErrorCode
Source§impl Ord for WorktreeErrorCode
impl Ord for WorktreeErrorCode
Source§fn cmp(&self, other: &WorktreeErrorCode) -> Ordering
fn cmp(&self, other: &WorktreeErrorCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WorktreeErrorCode
impl PartialEq for WorktreeErrorCode
Source§impl PartialOrd for WorktreeErrorCode
impl PartialOrd for WorktreeErrorCode
impl StructuralPartialEq for WorktreeErrorCode
Auto Trait Implementations§
impl Freeze for WorktreeErrorCode
impl RefUnwindSafe for WorktreeErrorCode
impl Send for WorktreeErrorCode
impl Sync for WorktreeErrorCode
impl Unpin for WorktreeErrorCode
impl UnsafeUnpin for WorktreeErrorCode
impl UnwindSafe for WorktreeErrorCode
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