#[repr(C)]pub enum UCode {
Show 17 variants
Ok = 0,
Cancelled = 1,
Unknown = 2,
InvalidArgument = 3,
DeadlineExceeded = 4,
NotFound = 5,
AlreadyExists = 6,
PermissionDenied = 7,
ResourceExhausted = 8,
FailedPrecondition = 9,
Aborted = 10,
OutOfRange = 11,
Unimplemented = 12,
Internal = 13,
Unavailable = 14,
DataLoss = 15,
Unauthenticated = 16,
}Expand description
Canonical status codes for uProtocol operations.
These mirror the gRPC canonical codes, as required by the uProtocol specification; every transport and role reports failures through them. The application guide shows how callers act on the common ones.
Variants§
Ok = 0
Not an error; the operation completed successfully.
Cancelled = 1
The operation was cancelled, typically by the caller.
Unknown = 2
Unknown error, or an error from a foreign error space.
InvalidArgument = 3
The caller specified an invalid argument, regardless of system state.
DeadlineExceeded = 4
A deadline expired before the operation could complete.
NotFound = 5
A requested entity (listener, topic, resource) was not found.
AlreadyExists = 6
The entity a caller attempted to create already exists.
PermissionDenied = 7
The caller lacks permission to execute the operation.
ResourceExhausted = 8
A resource (quota, buffer space, loan capacity) has been exhausted.
FailedPrecondition = 9
The system is not in a state required for the operation.
Aborted = 10
The operation was aborted, typically due to a concurrency conflict.
OutOfRange = 11
The operation was attempted past the valid range.
Unimplemented = 12
The operation is not implemented or supported by this transport or service.
Internal = 13
An internal invariant was broken; a bug in the implementation.
The service or link is currently unavailable; retrying may succeed.
DataLoss = 15
Unrecoverable data loss or corruption.
Unauthenticated = 16
The request lacks valid authentication credentials.