Skip to main content

rns_embedded_ffi/generated/
node_error_codes.rs

1// @generated by scripts/generate_embedded_node_contracts.py
2// Source: docs/contracts/node-error-codes-v1.json
3
4#[repr(C)]
5#[derive(Debug, Clone, Copy, Eq, PartialEq)]
6pub enum RnsEmbeddedV1NodeErrorCode {
7    /// Unspecified node-centric failure.
8    Unknown = 0,
9    /// Caller supplied an invalid or unsupported node configuration.
10    InvalidConfig = 1,
11    /// The node hit an IO or backend state failure.
12    IoError = 2,
13    /// The active backend or link is disconnected or unavailable.
14    NetworkError = 3,
15    /// The underlying embedded protocol/runtime rejected the operation.
16    ReticulumError = 4,
17    /// The node is already running for the requested lifecycle transition.
18    AlreadyRunning = 5,
19    /// The operation requires a running node.
20    NotRunning = 6,
21    /// The requested wait budget elapsed.
22    Timeout = 7,
23    /// The runtime or FFI bridge reached an internal invariant failure.
24    InternalError = 8,
25    /// The caller passed a null, stale, or mismatched opaque handle.
26    InvalidHandle = 9,
27    /// The caller passed an invalid pointer for an input or output buffer.
28    InvalidPointer = 10,
29    /// The caller mixed manual and managed node progression modes.
30    ModeConflict = 11,
31    /// A poll observed that the subscription handle was closed.
32    SubscriptionClosed = 12,
33    /// A poll observed a generation change and the node restarted.
34    NodeRestarted = 13,
35    /// A poll observed an event-log gap and advanced to the next retained event.
36    EventGap = 14,
37    /// The node rejected the operation because queue capacity would be exceeded.
38    QueuePressure = 15,
39}