mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
15 lines
283 B
Rust
15 lines
283 B
Rust
use anyhow::Result;
|
|
use yazi_parser::spark::SparkKind;
|
|
use yazi_shared::data::Data;
|
|
|
|
use crate::Ctx;
|
|
|
|
pub trait Actor {
|
|
type Form;
|
|
|
|
const NAME: &str;
|
|
|
|
fn act(cx: &mut Ctx, form: Self::Form) -> Result<Data>;
|
|
|
|
fn hook(_cx: &Ctx, _form: &Self::Form) -> Option<SparkKind> { None }
|
|
}
|