pub enum SyncError {
InvalidContainerId(String),
InvalidTransition {
from: CdeState,
to: CdeState,
suitability: SuitabilityCode,
},
ContainerLocked(CdeState),
PromotionBlocked(Vec<Diagnostic>),
ElementBorrowed {
node: NodeId,
owner: ActorId,
},
UnknownBaseHash(ContentHash),
HashMismatch {
expected: ContentHash,
actual: ContentHash,
},
Pig(PigError),
}Expand description
Errors returned by ISO 19650 container validation, promotion gates, worksets, and delta sync.
Variants§
InvalidContainerId(String)
ISO 19650-2 container identifier failed token format validation.
InvalidTransition
Requested CDE state transition or suitability code violates the ISO 19650 lifecycle matrix.
Fields
suitability: SuitabilityCodeSuitability code supplied for the transition.
ContainerLocked(CdeState)
Mutation or non-archival transition rejected because the container is immutable.
PromotionBlocked(Vec<Diagnostic>)
WIP-to-Shared promotion rejected by aecr_pig::VerificationPipeline.
ElementBorrowed
Node cannot be edited or acquired because another actor holds an exclusive borrow lease.
Fields
UnknownBaseHash(ContentHash)
Delta base root hash does not match any active revision in local Command Bus history.
HashMismatch
Merkle root hash chain mismatch detected while validating or applying a delta envelope.
Fields
expected: ContentHashExpected SHA-256 Merkle root hash.
actual: ContentHashObserved SHA-256 Merkle root hash.
Pig(PigError)
Underlying Parametric Intent Graph or Command Bus error.
Trait Implementations§
Source§impl Error for SyncError
impl Error for SyncError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SyncError
impl !UnwindSafe for SyncError
impl Forget for SyncError
impl Freeze for SyncErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Diagnostic>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
&'static str: Freeze,
PhantomData<usize>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
impl Move for SyncError
impl Send for SyncError
impl Sync for SyncError
impl Unpin for SyncError
impl UnsafeUnpin for SyncErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Diagnostic>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.