pub struct AgentSessionEntry {
pub session_ref: String,
pub short_id: Option<String>,
pub cwd: Option<String>,
pub started_at_ms: Option<i64>,
pub state: Option<String>,
}Expand description
One session from an agent’s sessions command output: a JSON array of
objects, of which the fields below are read and everything else ignored.
sessionId (falling back to id) is the durable reference substituted
into {session}; cwd and startedAt (ms epoch) identify a fresh
dispatch’s session among its siblings; state is "done" once finished.
Fields§
§session_ref: String§short_id: Option<String>§cwd: Option<String>§started_at_ms: Option<i64>§state: Option<String>Implementations§
Source§impl AgentSessionEntry
impl AgentSessionEntry
Sourcepub fn matches_ref(&self, session_ref: &str) -> bool
pub fn matches_ref(&self, session_ref: &str) -> bool
Whether this entry is the session a stored reference points at — either id form matches, since a log-parsed fallback may record the short id.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
A finished session: still listed, but no longer running.
Trait Implementations§
Source§impl Clone for AgentSessionEntry
impl Clone for AgentSessionEntry
Source§fn clone(&self) -> AgentSessionEntry
fn clone(&self) -> AgentSessionEntry
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 AgentSessionEntry
impl Debug for AgentSessionEntry
impl Eq for AgentSessionEntry
Source§impl PartialEq for AgentSessionEntry
impl PartialEq for AgentSessionEntry
impl StructuralPartialEq for AgentSessionEntry
Auto Trait Implementations§
impl Freeze for AgentSessionEntry
impl RefUnwindSafe for AgentSessionEntry
impl Send for AgentSessionEntry
impl Sync for AgentSessionEntry
impl Unpin for AgentSessionEntry
impl UnsafeUnpin for AgentSessionEntry
impl UnwindSafe for AgentSessionEntry
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.