pub enum WorktreeDisposition {
Absent,
Intact,
Removed,
RemovalFailed,
}Expand description
What has happened to a worker’s git worktree as of the
SessionUpdate::WorkerStatusChanged event carrying it. Only the
agents__despawn path ever removes one. Among the spawn
rollbacks, the dividing line is Connected: one that fires before
the subprocess connected reports Self::Absent, because claude
never ran to create a worktree, while a rollback after Connected
(a failed tag-write) reports Self::untouched, because by then
the worktree is on disk. Every other emitter reports
Self::untouched.
Variants§
Absent
Nothing to report on: either the worker was spawned outside a git repo, or its spawn failed before it had a worktree.
Intact
On disk and untouched.
Removed
Gone from disk by the time the despawn finished, whether or not the despawn is what removed it.
RemovalFailed
The despawn’s removal failed and the worktree is still on disk.
Implementations§
Trait Implementations§
Source§impl Clone for WorktreeDisposition
impl Clone for WorktreeDisposition
impl Copy for WorktreeDisposition
Source§impl Debug for WorktreeDisposition
impl Debug for WorktreeDisposition
Source§impl<'de> Deserialize<'de> for WorktreeDisposition
impl<'de> Deserialize<'de> for WorktreeDisposition
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>,
impl Eq for WorktreeDisposition
Source§impl PartialEq for WorktreeDisposition
impl PartialEq for WorktreeDisposition
Source§impl Serialize for WorktreeDisposition
impl Serialize for WorktreeDisposition
impl StructuralPartialEq for WorktreeDisposition
Auto Trait Implementations§
impl Freeze for WorktreeDisposition
impl RefUnwindSafe for WorktreeDisposition
impl Send for WorktreeDisposition
impl Sync for WorktreeDisposition
impl Unpin for WorktreeDisposition
impl UnsafeUnpin for WorktreeDisposition
impl UnwindSafe for WorktreeDisposition
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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