| 24 | } |
| 25 | |
| 26 | pub trait IoTracer { |
| 27 | fn read(&mut self, addr: StreamKey, value: &[u8]); |
| 28 | fn snapshot(&self) -> Box<dyn std::any::Any>; |
| 29 | fn restore(&mut self, snapshot: &Box<dyn std::any::Any>); |
| 30 | } |
| 31 | |
| 32 | pub trait IoTracerAny: IoTracer + Send + Sync + 'static { |
| 33 | fn as_any(&self) -> &dyn std::any::Any; |
nothing calls this directly
no outgoing calls
no test coverage detected