#[repr(u32)]pub enum ErrorCode {
Show 19 variants
Ok = 0,
Cancelled = 1,
DeadlineExceeded = 2,
InvalidArgument = 3,
NotFound = 4,
AlreadyExists = 5,
PermissionDenied = 6,
ResourceExhausted = 7,
FailedPrecondition = 8,
Aborted = 9,
OutOfRange = 10,
Unimplemented = 11,
Internal = 12,
Unavailable = 13,
DataLoss = 14,
PeerDied = 100,
SessionClosed = 101,
ValidationFailed = 102,
StaleGeneration = 103,
}Expand description
RPC error codes.
Codes 0-99 align with gRPC for familiarity. Codes 100+ are rapace-specific.
Variants§
Ok = 0
Cancelled = 1
DeadlineExceeded = 2
InvalidArgument = 3
NotFound = 4
AlreadyExists = 5
PermissionDenied = 6
ResourceExhausted = 7
FailedPrecondition = 8
Aborted = 9
OutOfRange = 10
Unimplemented = 11
Internal = 12
DataLoss = 14
PeerDied = 100
SessionClosed = 101
ValidationFailed = 102
StaleGeneration = 103
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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