pub struct RunningRow {
pub session_id: Option<i64>,
pub task_id: i64,
pub task_title: String,
pub task_state: TaskState,
pub agent: Option<String>,
pub started_at: String,
pub elapsed_secs: i64,
}Expand description
A row of the cockpit’s running strip (DESIGN.md §9): one per running task,
joined with its open session if it has one. A task with no open session
(started by hand) still shows, with session_id/agent set to None.
elapsed_secs is computed in SQL against the database’s clock, so the TUI
only has to format it.
Fields§
§session_id: Option<i64>§task_id: i64§task_title: String§task_state: TaskState§agent: Option<String>§started_at: String§elapsed_secs: i64Trait Implementations§
Source§impl Clone for RunningRow
impl Clone for RunningRow
Source§fn clone(&self) -> RunningRow
fn clone(&self) -> RunningRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunningRow
impl Debug for RunningRow
impl Eq for RunningRow
Source§impl PartialEq for RunningRow
impl PartialEq for RunningRow
impl StructuralPartialEq for RunningRow
Auto Trait Implementations§
impl Freeze for RunningRow
impl RefUnwindSafe for RunningRow
impl Send for RunningRow
impl Sync for RunningRow
impl Unpin for RunningRow
impl UnsafeUnpin for RunningRow
impl UnwindSafe for RunningRow
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
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,
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§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.