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