| 57 | |
| 58 | #[derive(Debug)] |
| 59 | struct State<K, Doc> |
| 60 | where |
| 61 | Doc: Clone + Send + Sync + 'static, |
| 62 | K: Clone |
| 63 | + PartialOrd |
| 64 | + Ord |
| 65 | + PartialEq |
| 66 | + Eq |
| 67 | + Hash |
| 68 | + Send |
| 69 | + 'static |
| 70 | { |
| 71 | |
| 72 | entries: HashMap<K, Entry<Doc>>, |
| 73 | expirations: BTreeMap<(Instant, u64), K>, |
| 74 | next_id: u64, |
| 75 | shutdown: bool, |
| 76 | } |
| 77 | |
| 78 | |
| 79 | #[derive(Debug)] |
nothing calls this directly
no outgoing calls
no test coverage detected