yazi-runner 26.5.6

Yazi Lua runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use mlua::{FromLuaMulti, Lua, MultiValue};

#[derive(Default)]
pub struct PreloadState {
	pub complete: bool,
	pub error:    Option<yazi_binding::Error>,
}

impl FromLuaMulti for PreloadState {
	fn from_lua_multi(values: MultiValue, lua: &Lua) -> mlua::Result<Self> {
		let (complete, error) = FromLuaMulti::from_lua_multi(values, lua)?;
		Ok(Self { complete, error })
	}
}