pub struct SignalPaths {
pub dir: PathBuf,
}Expand description
信号目录/文件的解析。默认 %LOCALAPPDATA%\actl\。
Fields§
§dir: PathBufImplementations§
Source§impl SignalPaths
impl SignalPaths
pub fn at(dir: impl Into<PathBuf>) -> Self
pub fn state_file(&self) -> PathBuf
pub fn stop_file(&self) -> PathBuf
Sourcepub fn write_state(&self, st: &SessionState)
pub fn write_state(&self, st: &SessionState)
状态快照落盘(单文件原子替换;失败静默——状态通道绝不能影响命令本身)。
pub fn read_state(&self) -> Option<SessionState>
Sourcepub fn request_stop(&self)
pub fn request_stop(&self)
写入停止标志(粘性:清除是显式动作)。
pub fn stop_requested(&self) -> bool
Sourcepub fn clear_stop(&self)
pub fn clear_stop(&self)
显式清除停止标志(actl-signal 的“清除“按钮调用)。
Trait Implementations§
Source§impl Clone for SignalPaths
impl Clone for SignalPaths
Source§impl Debug for SignalPaths
impl Debug for SignalPaths
Auto Trait Implementations§
impl Freeze for SignalPaths
impl RefUnwindSafe for SignalPaths
impl Send for SignalPaths
impl Sync for SignalPaths
impl Unpin for SignalPaths
impl UnsafeUnpin for SignalPaths
impl UnwindSafe for SignalPaths
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