pub struct MergedLiveSession {
pub session_id: Option<String>,
pub cwd: String,
pub tty: Option<String>,
pub hook_status: Option<HookSessionStatus>,
pub process: Option<LiveSession>,
pub last_event_at: Option<DateTime<Local>>,
pub last_event: Option<String>,
}Expand description
A merged view of hook data + ps-based process data for one Claude session
Fields§
§session_id: Option<String>Session ID (from hook data or ps metadata)
cwd: StringWorking directory
tty: Option<String>TTY device (from hook data)
hook_status: Option<HookSessionStatus>Status from hook events (None = no hooks for this session)
process: Option<LiveSession>Underlying ps-detected process (None = hook-only, ps couldn’t find it yet)
last_event_at: Option<DateTime<Local>>When the last hook event was received
last_event: Option<String>Name of the last hook event
Implementations§
Source§impl MergedLiveSession
impl MergedLiveSession
Sourcepub fn effective_status(&self) -> LiveSessionDisplayStatus
pub fn effective_status(&self) -> LiveSessionDisplayStatus
Compute the effective display status
Sourcepub fn project_name(&self) -> &str
pub fn project_name(&self) -> &str
Project name (basename of cwd)
Trait Implementations§
Source§impl Clone for MergedLiveSession
impl Clone for MergedLiveSession
Source§fn clone(&self) -> MergedLiveSession
fn clone(&self) -> MergedLiveSession
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MergedLiveSession
impl RefUnwindSafe for MergedLiveSession
impl Send for MergedLiveSession
impl Sync for MergedLiveSession
impl Unpin for MergedLiveSession
impl UnsafeUnpin for MergedLiveSession
impl UnwindSafe for MergedLiveSession
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