proxy_sdk/
status.rs

1#[repr(u32)]
2#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
3#[non_exhaustive]
4pub enum Status {
5    Ok = 0,
6    /// The result could not be found, e.g. a provided key did not appear in a table.
7    NotFound = 1,
8    /// An argument was bad, e.g. did not not conform to the required range.
9    BadArgument = 2,
10    /// A protobuf could not be serialized.
11    SerializationFailure = 3,
12    /// A protobuf could not be parsed.
13    ParseFailure = 4,
14    /// A provided expression (e.g. "foo.bar") was illegal or unrecognized.
15    BadExpression = 5,
16    /// A provided memory range was not legal.
17    InvalidMemoryAccess,
18    /// Data was requested from an empty container.
19    Empty = 7,
20    /// The provided CAS did not match that of the stored data.
21    CasMismatch = 8,
22    /// Returned result was unexpected, e.g. of the incorrect size.
23    ResultMismatch = 9,
24    /// Internal failure: trying check logs of the surrounding system.
25    InternalFailure = 10,
26    /// The connection/stream/pipe was broken/closed unexpectedly.
27    BrokenConnection = 11,
28    /// Feature not implemented.
29    Unimplemented = 12,
30}