yazi/yazi-scheduler/src/in.rs
2026-06-18 15:06:31 +08:00

16 lines
278 B
Rust

use std::borrow::Cow;
use yazi_shared::id::Id;
use yazi_shim::SStr;
pub trait TaskIn {
type Prog;
fn id(&self) -> Id;
fn set_id(&mut self, id: Id) -> &mut Self;
fn title(&self) -> Cow<'_, str>;
fn set_title(&mut self, _title: impl Into<SStr>) -> &mut Self { self }
}