mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
10 lines
221 B
Rust
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") } }
|
|
}
|