#[repr(C)]pub enum A1Status {
Show 29 variants
A1Ok = 0,
A1ErrEmptyChain = 1,
A1ErrStorageFailure = 2,
A1ErrRootMismatch = 3,
A1ErrBrokenLinkage = 4,
A1ErrInvalidSig = 5,
A1ErrNotYetValid = 6,
A1ErrExpired = 7,
A1ErrTemporalViol = 8,
A1ErrMaxDepth = 9,
A1ErrInvalidProof = 10,
A1ErrScopeEscal = 11,
A1ErrUnauthorized = 12,
A1ErrScopeViol = 13,
A1ErrNonceReplay = 14,
A1ErrRevoked = 15,
A1ErrIntentNotFound = 16,
A1ErrEmptyTree = 17,
A1ErrWireFormat = 18,
A1ErrUnsupportedVer = 19,
A1ErrPolicyViolation = 20,
A1ErrBatchItemFailed = 21,
A1ErrMacFailed = 22,
A1ErrNamespaceMismatch = 23,
A1ErrRateLimit = 24,
A1ErrStorageUnhealthy = 25,
A1ErrPassportNarrowing = 26,
A1ErrPanic = 98,
A1ErrUnknown = 99,
}ffi only.Expand description
Return value of every fallible FFI function.
A1_OK = 0 is the only success value; all other values are errors.
Call dyolo_last_error() immediately after a non-zero return to read
a human-readable description of the failure.
Returns a A1Status code detailing the failure reason.
Documented for cbindgen export.
Variants§
A1Ok = 0
Operation succeeded.
A1ErrEmptyChain = 1
The delegation chain is empty.
A1ErrStorageFailure = 2
The storage backend failed.
A1ErrRootMismatch = 3
Chain root does not match the expected principal.
A1ErrBrokenLinkage = 4
Delegation link broken at hop N.
A1ErrInvalidSig = 5
Invalid cryptographic signature at hop N.
A1ErrNotYetValid = 6
Certificate is not yet valid (clock drift or future issuance).
A1ErrExpired = 7
Certificate has expired.
A1ErrTemporalViol = 8
Temporal violation: child outlives parent.
A1ErrMaxDepth = 9
Delegation depth exceeds policy or cert maximum.
A1ErrInvalidProof = 10
The sub-scope or merkle proof is invalid.
A1ErrScopeEscal = 11
Scope escalation: child attempts to delegate scope it does not have.
The executing agent is not the terminal delegate.
A1ErrScopeViol = 13
The requested intent is not permitted by the terminal scope.
A1ErrNonceReplay = 14
Nonce replay detected.
A1ErrRevoked = 15
A certificate in the chain has been revoked.
A1ErrIntentNotFound = 16
Intent not found in the scope tree.
A1ErrEmptyTree = 17
Attempted to build an empty scope tree.
A1ErrWireFormat = 18
Invalid wire format (JSON/CBOR parse error).
A1ErrUnsupportedVer = 19
Unsupported certificate version.
A1ErrPolicyViolation = 20
Delegation policy violation.
A1ErrBatchItemFailed = 21
Batch authorization failed at one or more indices.
A1ErrMacFailed = 22
MAC/HMAC verification failed.
A1ErrNamespaceMismatch = 23
Chain namespace does not match the requested namespace.
A1ErrRateLimit = 24
Rate limit exceeded.
A1ErrStorageUnhealthy = 25
Storage health check failed.
A1ErrPassportNarrowing = 26
Passport capability narrowing violation.
A1ErrPanic = 98
A Rust panic occurred.
A1ErrUnknown = 99
Unknown or unmapped error.