mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-22 10:44:19 +01:00
26 lines
454 B
Rust
26 lines
454 B
Rust
pub mod bugbase;
|
|
pub mod cli;
|
|
pub mod clock;
|
|
pub mod differential;
|
|
pub mod doublecheck;
|
|
pub mod env;
|
|
pub mod execution;
|
|
#[expect(dead_code)]
|
|
pub mod file;
|
|
pub mod io;
|
|
pub mod memory;
|
|
|
|
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);
|
|
|
|
fn persist_files(&self) -> anyhow::Result<()>;
|
|
}
|