pub(crate) struct DespawnCleanupPending {
workspace: Arc<Workspace>,
project_key: ProjectKey,
label: String,
}Expand description
One label’s in-flight despawn cleanup, released when it drops.
Held from the despawn’s mark (taken before its teardown) until the
cleanup finishes, so a spawn for the same label is refused rather than
handed a worktree that the removal is deleting. Drop rather than a
plain clear at the end: a cleanup that unwinds mid-removal must not
leave the label unspawnable for the rest of the run.
Fields§
§workspace: Arc<Workspace>§project_key: ProjectKey§label: StringTrait Implementations§
Source§impl Drop for DespawnCleanupPending
impl Drop for DespawnCleanupPending
Auto Trait Implementations§
impl !RefUnwindSafe for DespawnCleanupPending
impl !UnwindSafe for DespawnCleanupPending
impl Freeze for DespawnCleanupPending
impl Send for DespawnCleanupPending
impl Sync for DespawnCleanupPending
impl Unpin for DespawnCleanupPending
impl UnsafeUnpin for DespawnCleanupPending
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§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> ⓘ
Converts
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> ⓘ
Converts
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