pub enum JobKey {
Path(PathBuf),
Branch(String),
New(String),
}Expand description
Identifies the target of a background job so its per-row spinner can be found
and so a second action on the same target can be refused (issue #46 overhaul).
Keyed by the row’s stable identity (path or branch name) so it survives a
re-sort/refresh, mirroring App::loaded_paths.
Variants§
Path(PathBuf)
A job targeting the worktree at this path (remove, sync, checkout, submodule init).
Branch(String)
A job targeting the worktree-less branch row with this name (delete branch, materialize, branch-row sync).
New(String)
A job with no existing row yet (creating a brand-new worktree, or checking out a PR into a new branch): it has nothing to attach a per-row spinner to, so it shows only in the status-bar summary.
Trait Implementations§
impl Eq for JobKey
impl StructuralPartialEq for JobKey
Auto Trait Implementations§
impl Freeze for JobKey
impl RefUnwindSafe for JobKey
impl Send for JobKey
impl Sync for JobKey
impl Unpin for JobKey
impl UnsafeUnpin for JobKey
impl UnwindSafe for JobKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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