mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 12:34:22 +01:00
create SimIO trait
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user