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

Method is_corruption

atomic-repository/src/changestore/error.rs:101–103  ·  view source on GitHub ↗

Check if this error indicates data corruption. Corruption errors should trigger re-download from remotes or error escalation to the user.

(&self)

Source from the content-addressed store, hash-verified

99 /// Corruption errors should trigger re-download from remotes
100 /// or error escalation to the user.
101 pub fn is_corruption(&self) -> bool {
102 matches!(self, ChangeStoreError::HashMismatch { .. })
103 }
104}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected