#[repr(u32)]pub enum GrpcStatusCode {
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
The possible status that a gRPC endpoint can return.
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
Implementations§
Trait Implementations§
Source§impl Clone for GrpcStatusCode
impl Clone for GrpcStatusCode
Source§fn clone(&self) -> GrpcStatusCode
fn clone(&self) -> GrpcStatusCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrpcStatusCode
impl Debug for GrpcStatusCode
Source§impl Hash for GrpcStatusCode
impl Hash for GrpcStatusCode
Source§impl PartialEq for GrpcStatusCode
impl PartialEq for GrpcStatusCode
impl Copy for GrpcStatusCode
impl Eq for GrpcStatusCode
impl StructuralPartialEq for GrpcStatusCode
Auto Trait Implementations§
impl Freeze for GrpcStatusCode
impl RefUnwindSafe for GrpcStatusCode
impl Send for GrpcStatusCode
impl Sync for GrpcStatusCode
impl Unpin for GrpcStatusCode
impl UnwindSafe for GrpcStatusCode
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