Skip to main content

muxr_core/protocol/
tracked_process.rs

1use serde::Deserialize;
2use serde::Serialize;
3
4#[derive(
5    rkyv::Archive,
6    Clone,
7    Copy,
8    Debug,
9    Default,
10    Deserialize,
11    rkyv::Deserialize,
12    Eq,
13    PartialEq,
14    Serialize,
15    rkyv::Serialize,
16)]
17pub enum TrackedProcessState {
18    /// No configured tracked process is running in the pane.
19    #[default]
20    None,
21    /// A tracked process previously needed attention and that attention was acknowledged by focusing the pane.
22    Seen,
23    /// A tracked process is running, with no pending attention signal.
24    Busy,
25    /// A tracked process needs attention and has not yet been acknowledged by focusing the pane.
26    Unseen,
27}