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

Method is_corruption

atomic-core/src/apply/error.rs:420–425  ·  view source on GitHub ↗

Check if this error indicates data corruption. # Returns `true` if the error suggests repository corruption.

(&self)

Source from the content-addressed store, hash-verified

418 ///
419 /// `true` if the error suggests repository corruption.
420 pub fn is_corruption(&self) -> bool {
421 matches!(
422 self,
423 Self::Corruption | Self::BlockNotFound { .. } | Self::InconsistentEdge { .. }
424 )
425 }
426
427 /// Check if this error is recoverable.
428 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected