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.
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.
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 Freeze for GrpcCode
impl RefUnwindSafe for GrpcCode
impl Send for GrpcCode
impl Sync for GrpcCode
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)