pub struct SessionInfo {
pub id: SessionId,
pub name: SessionName,
pub working_directory: Option<String>,
pub size: TerminalSizeSpec,
pub tags: Vec<String>,
pub generation: u64,
pub revision: u64,
pub attached_clients: u32,
}Expand description
Sticky metadata and counters captured for one daemon session.
attached_clients is the count of currently attached detached-RPC
clients at the moment the snapshot was assembled — it is not a
monotonic counter and may decrease as clients disconnect.
Fields§
§id: SessionIdStable per-server session identity ($N).
name: SessionNameValidated session name in canonical sanitized form.
working_directory: Option<String>Tmux format-expanded working directory at session-start time, when the daemon recorded one.
size: TerminalSizeSpecSmallest attached-client geometry the session has agreed on.
Sticky session-scoped tag labels.
generation: u64Monotonic session-state generation counter incremented on every observed mutation.
revision: u64Coarser revision counter incremented on layout-affecting mutations such as window list or active-window changes.
attached_clients: u32Number of currently attached detached-RPC clients.
Implementations§
Source§impl SessionInfo
impl SessionInfo
Sourcepub fn new(id: SessionId, name: SessionName) -> Self
pub fn new(id: SessionId, name: SessionName) -> Self
Creates a sticky session info snapshot with default optional fields.
Trait Implementations§
Source§impl Clone for SessionInfo
impl Clone for SessionInfo
Source§fn clone(&self) -> SessionInfo
fn clone(&self) -> SessionInfo
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 SessionInfo
impl Debug for SessionInfo
Source§impl<'de> Deserialize<'de> for SessionInfo
impl<'de> Deserialize<'de> for SessionInfo
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>,
impl Eq for SessionInfo
Source§impl Hash for SessionInfo
impl Hash for SessionInfo
Source§impl PartialEq for SessionInfo
impl PartialEq for SessionInfo
Source§fn eq(&self, other: &SessionInfo) -> bool
fn eq(&self, other: &SessionInfo) -> bool
self and other values to be equal, and is used by ==.