pub enum GrpcStatus {
Show 17 variants
Ok = 0,
Cancelled = 1,
Unknown = 2,
Argument = 3,
DeadlineExceeded = 4,
NotFound = 5,
AlreadyExists = 6,
PermissionDenied = 7,
Unauthenticated = 16,
ResourceExhausted = 8,
FailedPrecondition = 9,
Aborted = 10,
OutOfRange = 11,
Unimplemented = 12,
Internal = 13,
Unavailable = 14,
DataLoss = 15,
}
Expand description
gRPC status constants.
Variants§
Ok = 0
Cancelled = 1
Unknown = 2
Argument = 3
DeadlineExceeded = 4
NotFound = 5
AlreadyExists = 6
PermissionDenied = 7
Unauthenticated = 16
ResourceExhausted = 8
FailedPrecondition = 9
Aborted = 10
OutOfRange = 11
Unimplemented = 12
Internal = 13
DataLoss = 15
Implementations§
Source§impl GrpcStatus
impl GrpcStatus
Sourcepub fn from_code(code: u32) -> Option<GrpcStatus>
pub fn from_code(code: u32) -> Option<GrpcStatus>
Find GrpcStatus enum variant by code
Sourcepub fn from_code_or_unknown(code: u32) -> GrpcStatus
pub fn from_code_or_unknown(code: u32) -> GrpcStatus
Find GrpcStatus enum variant by code or return default value
Trait Implementations§
Source§impl Clone for GrpcStatus
impl Clone for GrpcStatus
Source§fn clone(&self) -> GrpcStatus
fn clone(&self) -> GrpcStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GrpcStatus
impl Debug for GrpcStatus
impl Copy for GrpcStatus
Auto Trait Implementations§
impl Freeze for GrpcStatus
impl RefUnwindSafe for GrpcStatus
impl Send for GrpcStatus
impl Sync for GrpcStatus
impl Unpin for GrpcStatus
impl UnwindSafe for GrpcStatus
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
Mutably borrows from an owned value. Read more