| 137 | |
| 138 | #[derive(Clone, Debug)] |
| 139 | pub struct CacheObj<K, D> |
| 140 | where |
| 141 | K: Serialize |
| 142 | + DeserializeOwned |
| 143 | + AsRef<Path> |
| 144 | + Hash |
| 145 | + Eq |
| 146 | + Ord |
| 147 | + Clone |
| 148 | + Debug |
| 149 | + Sync |
| 150 | + Send |
| 151 | + 'static, |
| 152 | D: Serialize + DeserializeOwned + Clone + Debug + Sync + Send + 'static, |
| 153 | { |
| 154 | pub key: K, |
| 155 | pub fhandle: Arc<FileHandle>, |
| 156 | pub userdata: D, |
| 157 | } |
| 158 | |
| 159 | #[derive(Clone, Debug)] |
| 160 | pub struct FileHandle { |
nothing calls this directly
no outgoing calls
no test coverage detected