Enum tower_http::classify::GrpcCode
source · [−]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 codes. Used in GrpcErrorsAsFailures::success_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
Auto Trait Implementations
impl RefUnwindSafe for GrpcCode
impl Send for GrpcCode
impl Sync for GrpcCode
impl Unpin for GrpcCode
impl UnwindSafe for GrpcCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> PolicyExt for T where
T: ?Sized,
impl<T> PolicyExt for T where
T: ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more