#[non_exhaustive]pub enum RpcStatus {
Show 17 variants
Ok,
Cancelled,
Unknown,
InvalidArgument,
DeadlineExceeded,
NotFound,
AlreadyExists,
PermissionDenied,
ResourceExhausted,
FailedPrecondition,
Aborted,
OutOfRange,
Unimplemented,
Internal,
Unavailable,
DataLoss,
Unauthenticated,
}Expand description
RPC 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 RpcStatus
impl Eq for RpcStatus
impl StructuralPartialEq for RpcStatus
Auto Trait Implementations§
impl Freeze for RpcStatus
impl RefUnwindSafe for RpcStatus
impl Send for RpcStatus
impl Sync for RpcStatus
impl Unpin for RpcStatus
impl UnsafeUnpin for RpcStatus
impl UnwindSafe for RpcStatus
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