Create an empty cache (no prior sync history).
()
| 127 | impl RemoteState { |
| 128 | /// Create an empty cache (no prior sync history). |
| 129 | pub fn empty() -> Self { |
| 130 | Self { |
| 131 | entries: HashMap::new(), |
| 132 | last_sequence: None, |
| 133 | last_state: None, |
| 134 | last_tag_state: None, |
| 135 | remote_name: String::new(), |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | /// Create a cache with a name. |
| 140 | pub fn named(name: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected