pub enum ConnectCode {
Show 17 variants
Ok,
Canceled,
Unknown,
InvalidArgument,
DeadlineExceeded,
NotFound,
AlreadyExists,
PermissionDenied,
ResourceExhausted,
FailedPrecondition,
Aborted,
OutOfRange,
Unimplemented,
Internal,
Unavailable,
DataLoss,
Unauthenticated,
}Expand description
ConnectCode represents categories of errors as codes.
Variants§
Ok
The operation completed successfully.
Canceled
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§
Source§impl Clone for ConnectCode
impl Clone for ConnectCode
Source§fn clone(&self) -> ConnectCode
fn clone(&self) -> ConnectCode
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 ConnectCode
impl Debug for ConnectCode
Source§impl<'de> Deserialize<'de> for ConnectCode
impl<'de> Deserialize<'de> for ConnectCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<StatusCode> for ConnectCode
impl From<StatusCode> for ConnectCode
Source§fn from(code: StatusCode) -> Self
fn from(code: StatusCode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConnectCode
impl PartialEq for ConnectCode
Source§impl Serialize for ConnectCode
impl Serialize for ConnectCode
impl Copy for ConnectCode
impl StructuralPartialEq for ConnectCode
Auto Trait Implementations§
impl Freeze for ConnectCode
impl RefUnwindSafe for ConnectCode
impl Send for ConnectCode
impl Sync for ConnectCode
impl Unpin for ConnectCode
impl UnwindSafe for ConnectCode
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