Enum GrpcCode

pub enum GrpcCode

gRPC status codes.

These variants match the gRPC status codes.

Variants

Ok

The operation completed successfully.

Cancelled

The operation was cancelled.

Unknown

Unknown error.

InvalidArgument

Client specified an invalid argument.

DeadlineExceeded

Deadline expired before operation could complete.

NotFound

Some requested entity was not found.

AlreadyExists

Some entity that we attempted to create already exists.

PermissionDenied

The caller does not have permission to execute the specified operation.

ResourceExhausted

Some resource has been exhausted.

FailedPrecondition

The system is not in a state required for the operation's execution.

Aborted

The operation was aborted.

OutOfRange

Operation was attempted past the valid range.

Unimplemented

Operation is not implemented or not supported.

Internal

Internal error.

Unavailable

The service is currently unavailable.

DataLoss

Unrecoverable data loss or corruption.

Unauthenticated

The request does not have valid authentication credentials

Trait Implementations

impl Clone for GrpcCode

fn clone(&self) -> GrpcCode

impl Copy for GrpcCode

impl Debug for GrpcCode

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl From<NonZero<i32>> for GrpcCode

fn from(value: NonZeroI32) -> Self

impl From<i32> for GrpcCode

fn from(value: i32) -> Self

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

impl<T> Any for GrpcCode where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for GrpcCode where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for GrpcCode where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for GrpcCode where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for GrpcCode

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for GrpcCode

impl<T> PolicyExt for GrpcCode where T: ?Sized,

fn and<P, B, E>(self, other: P) -> And<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,
fn or<P, B, E>(self, other: P) -> Or<T, P>
where
    T: Sized + Policy<B, E>,
    P: Policy<B, E>,

impl<T> ToOwned for GrpcCode where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> WithSubscriber for GrpcCode

impl<T, U> Into<U> for GrpcCode where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for GrpcCode where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for GrpcCode where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>