#[non_exhaustive]pub enum RuntimeWorktreeCleanupPolicy {
RemoveIfClean,
Unknown(String),
}Expand description
How a session’s worktree is cleaned up. 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.
RemoveIfClean
removeIfClean: the runtime removes the worktree when it has no
uncommitted changes, and keeps it otherwise.
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 RuntimeWorktreeCleanupPolicy
impl Clone for RuntimeWorktreeCleanupPolicy
Source§impl Debug for RuntimeWorktreeCleanupPolicy
impl Debug for RuntimeWorktreeCleanupPolicy
Source§impl<'de> Deserialize<'de> for RuntimeWorktreeCleanupPolicy
impl<'de> Deserialize<'de> for RuntimeWorktreeCleanupPolicy
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 RuntimeWorktreeCleanupPolicy
impl StructuralPartialEq for RuntimeWorktreeCleanupPolicy
Auto Trait Implementations§
impl Forget for RuntimeWorktreeCleanupPolicy
impl Freeze for RuntimeWorktreeCleanupPolicy
impl Move for RuntimeWorktreeCleanupPolicy
impl RefUnwindSafe for RuntimeWorktreeCleanupPolicy
impl Send for RuntimeWorktreeCleanupPolicy
impl Sync for RuntimeWorktreeCleanupPolicy
impl Unpin for RuntimeWorktreeCleanupPolicy
impl UnsafeUnpin for RuntimeWorktreeCleanupPolicy
impl UnwindSafe for RuntimeWorktreeCleanupPolicy
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