| 100 | |
| 101 | #[derive(Debug, Copy, Clone, PartialEq, Serialize, Deserialize)] |
| 102 | pub enum Classification { |
| 103 | // The more major repos |
| 104 | RepomdXmlSlow, |
| 105 | // Stuff from obs |
| 106 | RepomdXmlFast, |
| 107 | // Metadata, related to repos. |
| 108 | Metadata, |
| 109 | // Large blobs that need a slower rate of refresh. Some proxies |
| 110 | // may choose not to cache this at all. |
| 111 | Blob, |
| 112 | // Content that has inbuilt version strings, that we can |
| 113 | // keep forever. |
| 114 | Static, |
| 115 | // 🤔 |
| 116 | Unknown, |
| 117 | // Spam ... ffs |
| 118 | Spam, |
| 119 | } |
| 120 | |
| 121 | impl Classification { |
| 122 | fn prefetch( |
nothing calls this directly
no outgoing calls
no test coverage detected