#[non_exhaustive]pub enum RuntimeWorktreeCleanupState {
Active,
Cleaned,
Retained,
CleanupFailed,
Unknown(String),
}Expand description
Where a session’s worktree cleanup stands. 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.
Active
active: no cleanup outcome is recorded yet.
Cleaned
cleaned: the runtime removed the worktree.
Retained
retained: the runtime kept the worktree.
CleanupFailed
cleanupFailed: the runtime tried to remove the worktree and 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 RuntimeWorktreeCleanupState
impl Clone for RuntimeWorktreeCleanupState
Source§impl Debug for RuntimeWorktreeCleanupState
impl Debug for RuntimeWorktreeCleanupState
Source§impl<'de> Deserialize<'de> for RuntimeWorktreeCleanupState
impl<'de> Deserialize<'de> for RuntimeWorktreeCleanupState
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 RuntimeWorktreeCleanupState
impl StructuralPartialEq for RuntimeWorktreeCleanupState
Auto Trait Implementations§
impl Forget for RuntimeWorktreeCleanupState
impl Freeze for RuntimeWorktreeCleanupState
impl Move for RuntimeWorktreeCleanupState
impl RefUnwindSafe for RuntimeWorktreeCleanupState
impl Send for RuntimeWorktreeCleanupState
impl Sync for RuntimeWorktreeCleanupState
impl Unpin for RuntimeWorktreeCleanupState
impl UnsafeUnpin for RuntimeWorktreeCleanupState
impl UnwindSafe for RuntimeWorktreeCleanupState
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