yazi-runner 26.5.6

Yazi Lua runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::sync::Arc;

use thiserror::Error;

#[derive(Clone, Debug, Error)]
pub enum PreloadError {
	#[error("Preload task cancelled")]
	Cancelled,
	#[error("Lua error during preload: {0}")]
	Lua(#[from] mlua::Error),
	#[error("Unexpected error during preload: {0}")]
	Unexpected(Arc<anyhow::Error>),
}

impl From<anyhow::Error> for PreloadError {
	fn from(e: anyhow::Error) -> Self { Self::Unexpected(e.into()) }
}