tab-daemon 0.5.4

the daemon module for the tab terminal multiplexer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;
use tab_api::tab::{TabId, TabMetadata};

type TabsMap = HashMap<TabId, TabMetadata>;

/// The currently running tabs
#[derive(Debug, Clone, Default, PartialEq, Eq)]
pub struct TabsState {
    pub tabs: TabsMap,
}

impl TabsState {
    pub fn new(tabs: &TabsMap) -> Self {
        Self { tabs: tabs.clone() }
    }
}