pub struct Session {
pub name: String,
pub status: SessionStatus,
pub profile: String,
pub profile_config: TmuxProfile,
pub created_at: DateTime<Utc>,
pub last_activity: Option<DateTime<Utc>>,
pub settings: SessionSettings,
}Expand description
Represents the tmux session that hosts all agent panes and provides supervision interface.
Fields§
§name: StringUnique session identifier
status: SessionStatusCurrent session status
profile: StringTmux profile being used
profile_config: TmuxProfileActive profile configuration
created_at: DateTime<Utc>Creation timestamp
last_activity: Option<DateTime<Utc>>Last activity timestamp
settings: SessionSettingsSession-specific settings
Implementations§
Source§impl Session
impl Session
Sourcepub fn new(name: impl Into<String>, profile: TmuxProfile) -> Self
pub fn new(name: impl Into<String>, profile: TmuxProfile) -> Self
Create a new session with basic configuration.
Sourcepub fn update_activity(&mut self)
pub fn update_activity(&mut self)
Update the session’s last activity timestamp.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Get the error message if the session is in an error state.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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