MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / empty

Method empty

atomic-remote/src/sync.rs:129–137  ·  view source on GitHub ↗

Create an empty cache (no prior sync history).

()

Source from the content-addressed store, hash-verified

127impl 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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected