#[non_exhaustive]pub enum RuntimeWorktreeCleanupReason {
DirtyWorktree,
HeadChanged,
PathEscape,
CleanupFailed,
UncertainLeaseState,
Unknown(String),
}Expand description
Why a session’s worktree cleanup kept the worktree or failed. The set is open, so newer hosts may send other values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DirtyWorktree
dirtyWorktree: the worktree had uncommitted changes, so cleanup kept
it.
HeadChanged
headChanged: the worktree’s head moved off the recorded head, so
cleanup kept it.
PathEscape
pathEscape: the recorded worktree path’s identity changed, so
cleanup kept it.
CleanupFailed
cleanupFailed: removing the worktree failed.
UncertainLeaseState
uncertainLeaseState: reconciliation could not prove the lease
state, so cleanup failed.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Excluded from the generated schema while the enum stays declared open; never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeWorktreeCleanupReason
impl Clone for RuntimeWorktreeCleanupReason
Source§impl Debug for RuntimeWorktreeCleanupReason
impl Debug for RuntimeWorktreeCleanupReason
Source§impl<'de> Deserialize<'de> for RuntimeWorktreeCleanupReason
impl<'de> Deserialize<'de> for RuntimeWorktreeCleanupReason
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuntimeWorktreeCleanupReason
impl StructuralPartialEq for RuntimeWorktreeCleanupReason
Auto Trait Implementations§
impl Forget for RuntimeWorktreeCleanupReason
impl Freeze for RuntimeWorktreeCleanupReason
impl Move for RuntimeWorktreeCleanupReason
impl RefUnwindSafe for RuntimeWorktreeCleanupReason
impl Send for RuntimeWorktreeCleanupReason
impl Sync for RuntimeWorktreeCleanupReason
impl Unpin for RuntimeWorktreeCleanupReason
impl UnsafeUnpin for RuntimeWorktreeCleanupReason
impl UnwindSafe for RuntimeWorktreeCleanupReason
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