| 2 | |
| 3 | #[derive(Debug, Error)] |
| 4 | pub(crate) enum EngineError { |
| 5 | #[error("script error: {0}")] |
| 6 | Script(#[from] ScriptError), |
| 7 | |
| 8 | #[error("executors error: {0}")] |
| 9 | Executor(#[from] ExecutorError), |
| 10 | |
| 11 | #[error("save error: {0}")] |
| 12 | Save(#[from] SaveError), |
| 13 | |
| 14 | #[error("media error: {0}")] |
| 15 | Media(#[from] MediaError), |
| 16 | |
| 17 | #[error("ui error: {0}")] |
| 18 | Ui(#[from] slint::PlatformError), |
| 19 | } |
| 20 | |
| 21 | impl<T> From<tokio::sync::mpsc::error::SendError<T>> for EngineError { |
| 22 | fn from(_: tokio::sync::mpsc::error::SendError<T>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected