yazi/yazi-parser/src/app/stop.rs
2025-07-14 23:08:11 +08:00

10 lines
221 B
Rust

use tokio::sync::oneshot;
use yazi_shared::event::CmdCow;
pub struct StopOpt {
pub tx: Option<oneshot::Sender<()>>,
}
impl From<CmdCow> for StopOpt {
fn from(mut c: CmdCow) -> Self { Self { tx: c.take_any("tx") } }
}