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