#[repr(i32)]pub enum ErrorCode {
Show 52 variants
Success = 0,
UnexpectedError = 1,
ConnectFailed = 2,
PermissionDenied = 3,
CollectionNotExists = 4,
IllegalArgument = 5,
IllegalDimension = 7,
IllegalIndexType = 8,
IllegalCollectionName = 9,
IllegalTopk = 10,
IllegalRowRecord = 11,
IllegalVectorId = 12,
IllegalSearchResult = 13,
FileNotFound = 14,
MetaFailed = 15,
CacheFailed = 16,
CannotCreateFolder = 17,
CannotCreateFile = 18,
CannotDeleteFolder = 19,
CannotDeleteFile = 20,
BuildIndexError = 21,
IllegalNlist = 22,
IllegalMetricType = 23,
OutOfMemory = 24,
IndexNotExist = 25,
EmptyCollection = 26,
UpdateImportTaskFailure = 27,
CollectionNameNotFound = 28,
CreateCredentialFailure = 29,
UpdateCredentialFailure = 30,
DeleteCredentialFailure = 31,
GetCredentialFailure = 32,
ListCredUsersFailure = 33,
GetUserFailure = 34,
CreateRoleFailure = 35,
DropRoleFailure = 36,
OperateUserRoleFailure = 37,
SelectRoleFailure = 38,
SelectUserFailure = 39,
SelectResourceFailure = 40,
OperatePrivilegeFailure = 41,
SelectGrantFailure = 42,
RefreshPolicyInfoCacheFailure = 43,
ListPolicyFailure = 44,
NotShardLeader = 45,
NoReplicaAvailable = 46,
SegmentNotFound = 47,
ForceDeny = 48,
RateLimit = 49,
NodeIdNotMatch = 50,
DataCoordNa = 100,
DdRequestRace = 1_000,
}
Variants§
Success = 0
UnexpectedError = 1
ConnectFailed = 2
PermissionDenied = 3
CollectionNotExists = 4
IllegalArgument = 5
IllegalDimension = 7
IllegalIndexType = 8
IllegalCollectionName = 9
IllegalTopk = 10
IllegalRowRecord = 11
IllegalVectorId = 12
IllegalSearchResult = 13
FileNotFound = 14
MetaFailed = 15
CacheFailed = 16
CannotCreateFolder = 17
CannotCreateFile = 18
CannotDeleteFolder = 19
CannotDeleteFile = 20
BuildIndexError = 21
IllegalNlist = 22
IllegalMetricType = 23
OutOfMemory = 24
IndexNotExist = 25
EmptyCollection = 26
UpdateImportTaskFailure = 27
CollectionNameNotFound = 28
CreateCredentialFailure = 29
UpdateCredentialFailure = 30
DeleteCredentialFailure = 31
GetCredentialFailure = 32
ListCredUsersFailure = 33
GetUserFailure = 34
CreateRoleFailure = 35
DropRoleFailure = 36
OperateUserRoleFailure = 37
SelectRoleFailure = 38
SelectUserFailure = 39
SelectResourceFailure = 40
OperatePrivilegeFailure = 41
SelectGrantFailure = 42
RefreshPolicyInfoCacheFailure = 43
ListPolicyFailure = 44
NotShardLeader = 45
NoReplicaAvailable = 46
SegmentNotFound = 47
ForceDeny = 48
RateLimit = 49
NodeIdNotMatch = 50
DataCoordNa = 100
Service availability. NA: Not Available.
DdRequestRace = 1_000
internal error code.
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for ErrorCode
impl Ord for ErrorCode
Source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request