| 17 | use crate::odb::{OdbReader, OdbWriter}; |
| 18 | |
| 19 | pub(crate) trait Handler { |
| 20 | /// Unique workspace name used as a prefix in storage so each handler's |
| 21 | /// data lives under its own namespace. |
| 22 | fn workspace(&self) -> &'static str; |
| 23 | |
| 24 | fn flatten( |
| 25 | self, |
| 26 | save_dir: &impl OdbReader, |
| 27 | storage: &mut impl OdbWriter, |
| 28 | ) -> Result<Vec<String>>; |
| 29 | fn unflatten( |
| 30 | self, |
| 31 | save_dir: &mut impl OdbWriter, |
| 32 | storage: &impl OdbReader, |
| 33 | ) -> Result<Vec<String>>; |
| 34 | } |
| 35 | |
| 36 | // ── Workspace-prefixed ODB wrappers ────────────────────────────────────────── |
| 37 |
nothing calls this directly
no outgoing calls
no test coverage detected