pub struct ResumeCandidate {
pub session_id: String,
pub state: SessionState,
pub last_profile: String,
pub title: String,
pub origin: String,
pub project: String,
pub has_checkpoint: bool,
pub last_activity_ms: Option<i64>,
pub publication: Option<PublicationState>,
pub checkpoint_archive: Option<PathBuf>,
pub worktree_checkout: bool,
}Expand description
One row of the resume dialog’s Mjolnir tab: what the row shows, without
the rest of the record. A session’s title can be tens of kilobytes, and
most of a store’s history is never resumed, so the resume wizard fetches
the whole record (DaemonAction::SessionRecord) only for the row picked.
Fields§
§session_id: String§state: SessionState§last_profile: String§title: StringThe listed title, cut to ResumeCandidate::TITLE_CHARS.
origin: StringWhere the session ran, as the session list names it.
project: String§has_checkpoint: bool§last_activity_ms: Option<i64>The checkpoint’s creation time, or the record’s last update without
one; None when neither parses.
publication: Option<PublicationState>§checkpoint_archive: Option<PathBuf>The checkpoint archive whose size the row shows. Only a stopped record is described by its checkpoint.
worktree_checkout: boolWhether destroying the session can also delete its worktree branch.
Implementations§
Source§impl ResumeCandidate
impl ResumeCandidate
Sourcepub const TITLE_CHARS: usize = 200
pub const TITLE_CHARS: usize = 200
Longer than any row draws it.
Sourcepub fn of(record: &SessionRecord, config: &Config) -> ResumeCandidate
pub fn of(record: &SessionRecord, config: &Config) -> ResumeCandidate
The row for record. The daemon and the dashboard both build rows
here, so a row reads the same whichever of them held the record.
Trait Implementations§
Source§impl Clone for ResumeCandidate
impl Clone for ResumeCandidate
Source§fn clone(&self) -> ResumeCandidate
fn clone(&self) -> ResumeCandidate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResumeCandidate
impl Debug for ResumeCandidate
Source§impl<'de> Deserialize<'de> for ResumeCandidate
impl<'de> Deserialize<'de> for ResumeCandidate
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResumeCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResumeCandidate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ResumeCandidate
Source§impl PartialEq for ResumeCandidate
impl PartialEq for ResumeCandidate
Source§impl Serialize for ResumeCandidate
impl Serialize for ResumeCandidate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ResumeCandidate
Auto Trait Implementations§
impl Freeze for ResumeCandidate
impl RefUnwindSafe for ResumeCandidate
impl Send for ResumeCandidate
impl Sync for ResumeCandidate
impl Unpin for ResumeCandidate
impl UnsafeUnpin for ResumeCandidate
impl UnwindSafe for ResumeCandidate
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.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> ⓘ
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