#[repr(u32)]pub enum GrpcCode {
Show 18 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,
Other(u32),
}
Expand description
Copied from tonic
crate, GRPC status codes
Variants§
Ok = 0
The operation completed successfully.
Cancelled = 1
The operation was cancelled.
Unknown = 2
Unknown error.
InvalidArgument = 3
Client specified an invalid argument.
DeadlineExceeded = 4
Deadline expired before operation could complete.
NotFound = 5
Some requested entity was not found.
AlreadyExists = 6
Some entity that we attempted to create already exists.
PermissionDenied = 7
The caller does not have permission to execute the specified operation.
ResourceExhausted = 8
Some resource has been exhausted.
FailedPrecondition = 9
The system is not in a state required for the operation’s execution.
Aborted = 10
The operation was aborted.
OutOfRange = 11
Operation was attempted past the valid range.
Unimplemented = 12
Operation is not implemented or not supported.
Internal = 13
Internal error.
The service is currently unavailable.
DataLoss = 15
Unrecoverable data loss or corruption.
Unauthenticated = 16
The request does not have valid authentication credentials
Other(u32)
Unknown code
Trait Implementations§
impl Copy for GrpcCode
impl Eq for GrpcCode
impl StructuralPartialEq for GrpcCode
Auto Trait Implementations§
impl Freeze for GrpcCode
impl RefUnwindSafe for GrpcCode
impl Send for GrpcCode
impl Sync for GrpcCode
impl Unpin for GrpcCode
impl UnwindSafe for GrpcCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more