cache.rs (142B)
1 use std::io::Write; 2 3 4 pub trait Cache { 5 fn open(&mut self, id: String) -> &mut dyn Write; 6 fn close(&mut self, id: String) -> usize; 7 }