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

Method source

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

Source from the content-addressed store, hash-verified

549
550impl std::error::Error for PristineError {
551 fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
552 match self {
553 Self::Database(e) => Some(e.as_ref()),
554 Self::Transaction(e) => Some(e.as_ref()),
555 Self::Table(e) => Some(e.as_ref()),
556 Self::Storage(e) => Some(e.as_ref()),
557 Self::Commit(e) => Some(e.as_ref()),
558 Self::Io(e) => Some(e),
559 _ => None,
560 }
561 }
562}
563
564// From Implementations for Error Conversion

Callers 1

Calls 1

as_refMethod · 0.80

Tested by 1