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

Method as_local

atomic-core/src/apply/error.rs:582–587  ·  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

580 ///
581 /// `Some(&LocalApplyError)` if this is a `Local` variant.
582 pub fn as_local(&self) -> Option<&LocalApplyError> {
583 match self {
584 Self::Local(e) => Some(e),
585 _ => None,
586 }
587 }
588
589 /// Check if this error is recoverable.
590 ///

Calls

no outgoing calls