yazi/yazi-parser/src/app/resume.rs
2025-12-17 23:00:05 +08:00

10 lines
225 B
Rust

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