#[non_exhaustive]pub enum GrpcCode {
Show 17 variants
Ok,
Cancelled,
Unknown,
InvalidArgument,
DeadlineExceeded,
NotFound,
AlreadyExists,
PermissionDenied,
ResourceExhausted,
FailedPrecondition,
Aborted,
OutOfRange,
Unimplemented,
Internal,
Unavailable,
DataLoss,
Unauthenticated,
}Expand description
gRPC status code, decoupled from any one client library’s spelling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ok
The operation completed successfully.
Cancelled
The operation was canceled, typically by the caller.
Unknown
An unknown error, often a status with no mapped code.
InvalidArgument
The client specified an invalid argument.
DeadlineExceeded
The deadline expired before the operation could complete.
NotFound
The requested entity was not found.
AlreadyExists
An attempt to create an entity that already exists.
PermissionDenied
The caller lacks permission to execute the operation.
ResourceExhausted
A resource (quota, capacity, file space) has been exhausted.
FailedPrecondition
The system is not in a state required for the operation.
Aborted
The operation was aborted, often due to a concurrency conflict.
OutOfRange
The operation was attempted past the valid range.
Unimplemented
The operation is not implemented or not supported.
Internal
An internal error: an invariant expected by the system was broken.
The service is currently unavailable, typically transient.
DataLoss
Unrecoverable data loss or corruption.
Unauthenticated
The request lacks valid authentication credentials.
Implementations§
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 UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request