pub struct WorkspaceCache {
pub written_at_unix_ms: Option<u64>,
pub sessions: HashMap<String, Vec<String>>,
pub worktree_expanded: HashMap<String, bool>,
pub project_expanded: HashMap<String, bool>,
pub tree_selected: usize,
pub cursor_identity: Option<CursorIdentity>,
pub muted_sessions: HashSet<String>,
pub command_history: Vec<String>,
pub active_tab: Option<String>,
pub tmux_server_pid: Option<u32>,
}Fields§
§written_at_unix_ms: Option<u64>Write timestamp used to choose the newest source after a crash.
sessions: HashMap<String, Vec<String>>worktree path → session names
worktree_expanded: HashMap<String, bool>worktree path → expanded
project_expanded: HashMap<String, bool>project path → expanded
tree_selected: usizelast cursor position in the flat tree (raw fallback)
cursor_identity: Option<CursorIdentity>stable cursor identity (preferred over raw index)
muted_sessions: HashSet<String>session names the user has muted (no activity updates, shown as ⊘)
command_history: Vec<String>global send-command history (Shift+S), newest last, capped at 50
active_tab: Option<String>last active tab name (None = default tab)
tmux_server_pid: Option<u32>tmux server PID at last save — used to detect server restart on next launch
Implementations§
Trait Implementations§
Source§impl Clone for WorkspaceCache
impl Clone for WorkspaceCache
Source§fn clone(&self) -> WorkspaceCache
fn clone(&self) -> WorkspaceCache
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 Default for WorkspaceCache
impl Default for WorkspaceCache
Source§fn default() -> WorkspaceCache
fn default() -> WorkspaceCache
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkspaceCache
impl<'de> Deserialize<'de> for WorkspaceCache
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 WorkspaceCache
impl RefUnwindSafe for WorkspaceCache
impl Send for WorkspaceCache
impl Sync for WorkspaceCache
impl Unpin for WorkspaceCache
impl UnsafeUnpin for WorkspaceCache
impl UnwindSafe for WorkspaceCache
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