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

Method source

atomic-core/src/pristine/error.rs:316–326  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

314
315impl std::error::Error for PristineError {
316 fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
317 match self {
318 Self::Database(e) => Some(e.as_ref()),
319 Self::Transaction(e) => Some(e.as_ref()),
320 Self::Table(e) => Some(e.as_ref()),
321 Self::Storage(e) => Some(e.as_ref()),
322 Self::Commit(e) => Some(e.as_ref()),
323 Self::Io(e) => Some(e),
324 _ => None,
325 }
326 }
327}
328
329// From Implementations for Error Conversion

Callers 2

reasonFunction · 0.45

Calls 1

as_refMethod · 0.80

Tested by 1