hyperlane_plugin_grpc/enum.rs
1/// Canonical gRPC status codes (`0..=16`).
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3#[repr(u8)]
4pub enum GrpcStatus {
5 /// Not an error; returned on success (`0`).
6 #[default]
7 Ok = 0,
8 /// The operation was cancelled (`1`).
9 Cancelled = 1,
10 /// Unknown error (`2`).
11 Unknown = 2,
12 /// Client specified an invalid argument (`3`).
13 InvalidArgument = 3,
14 /// Deadline expired before operation could complete (`4`).
15 DeadlineExceeded = 4,
16 /// Requested entity was not found (`5`).
17 NotFound = 5,
18 /// Entity attempted to be created already exists (`6`).
19 AlreadyExists = 6,
20 /// Caller does not have permission (`7`).
21 PermissionDenied = 7,
22 /// Resource exhausted such as quota or message size limit (`8`).
23 ResourceExhausted = 8,
24 /// System is not in a state required for execution (`9`).
25 FailedPrecondition = 9,
26 /// Operation was aborted (`10`).
27 Aborted = 10,
28 /// Operation was attempted past the valid range (`11`).
29 OutOfRange = 11,
30 /// Operation is not implemented or supported (`12`).
31 Unimplemented = 12,
32 /// Internal server error (`13`).
33 Internal = 13,
34 /// Service is currently unavailable (`14`).
35 Unavailable = 14,
36 /// Unrecoverable data loss or corruption (`15`).
37 DataLoss = 15,
38 /// Request lacks valid authentication credentials (`16`).
39 Unauthenticated = 16,
40}