From d8e9f145e63a07eeaaa8d707218dfc98f0ba0a37 Mon Sep 17 00:00:00 2001 From: pedrocarlo Date: Wed, 20 Aug 2025 10:58:01 -0300 Subject: [PATCH] create SimIO trait --- simulator/runner/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/simulator/runner/mod.rs b/simulator/runner/mod.rs index 3eef78331..13b5c4258 100644 --- a/simulator/runner/mod.rs +++ b/simulator/runner/mod.rs @@ -11,3 +11,13 @@ pub mod io; pub mod watch; pub const FAULT_ERROR_MSG: &str = "Injected Fault"; + +pub trait SimIO: turso_core::IO { + fn inject_fault(&self, fault: bool); + + fn print_stats(&self); + + fn syncing(&self) -> bool; + + fn close_files(&self); +}