pub struct SessionState {
pub pid: u32,
pub command: String,
pub app: Option<String>,
pub step: Option<String>,
pub phase: Phase,
pub ts_ms: u64,
}Expand description
一次命令执行的状态快照(单写者:当前 actl 进程;多读者)。
Fields§
§pid: u32§command: String§app: Option<String>目标窗口摘要(–app 原样;无则 None)
step: Option<String>batch 步序 “i/N”;单命令 None
phase: Phase§ts_ms: u64unix 毫秒时间戳(心跳)
Implementations§
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§impl Debug for SessionState
impl Debug for SessionState
Source§impl<'de> Deserialize<'de> for SessionState
impl<'de> Deserialize<'de> for SessionState
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 SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl UnwindSafe for SessionState
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