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

Method as_local

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

Get the underlying local error, if any. # Returns `Some(&LocalApplyError)` if this is a `Local` variant.

(&self)

Source from the content-addressed store, hash-verified

573 ///
574 /// `Some(&LocalApplyError)` if this is a `Local` variant.
575 pub fn as_local(&self) -> Option<&LocalApplyError> {
576 match self {
577 Self::Local(e) => Some(e),
578 _ => None,
579 }
580 }
581
582 /// Check if this error is recoverable.
583 ///

Calls

no outgoing calls