1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
use std::fmt;
use num_enum::{FromPrimitive, IntoPrimitive};
#[derive(Debug, Clone, Copy, Eq, PartialEq, FromPrimitive, IntoPrimitive)]
#[repr(i32)]
#[derive(serde::Deserialize)]
pub enum TaosCode {
Success = 0x0000,
RpcActionInProgress = 0x0001,
RpcAuthRequired = 0x0002,
RpcAuthFailure = 0x0003,
RpcRedirect = 0x0004,
RpcNotReady = 0x0005,
RpcAlreadyProcessed = 0x0006,
RpcLastSessionNotFinished = 0x0007,
RpcMismatchedLinkId = 0x0008,
RpcTooSlow = 0x0009,
RpcMaxSessions = 0x000A,
RpcNetworkUnavail = 0x000B,
RpcAppError = 0x000C,
RpcUnexpectedResponse = 0x000D,
RpcInvalidValue = 0x000E,
RpcInvalidTranId = 0x000F,
RpcInvalidSessionId = 0x0010,
RpcInvalidMsgType = 0x0011,
RpcInvalidResponseType = 0x0012,
RpcInvalidTimeStamp = 0x0013,
AppNotReady = 0x0014,
RpcFqdnError = 0x0015,
RpcInvalidVersion = 0x0016,
ComOpsNotSupport = 0x0100,
ComMemoryCorrupted = 0x0101,
ComOutOfMemory = 0x0102,
ComInvalidCfgMsg = 0x0103,
ComFileCorrupted = 0x0104,
RefNoMemory = 0x0105,
RefFull = 0x0106,
RefIdRemoved = 0x0107,
RefInvalidId = 0x0108,
RefAlreadyExist = 0x0109,
RefNotExist = 0x010A,
TscInvalidSql = 0x0200,
TscInvalidQhandle = 0x0201,
TscInvalidTimeStamp = 0x0202,
TscInvalidValue = 0x0203,
TscInvalidVersion = 0x0204,
TscInvalidIe = 0x0205,
TscInvalidFqdn = 0x0206,
TscInvalidUserLength = 0x0207,
TscInvalidPassLength = 0x0208,
TscInvalidDbLength = 0x0209,
TscInvalidTableIdLength = 0x020A,
TscInvalidConnection = 0x020B,
TscOutOfMemory = 0x020C,
TscNoDiskspace = 0x020D,
TscQueryCacheErased = 0x020E,
TscQueryCancelled = 0x020F,
TscSortedResTooMany = 0x0210,
TscAppError = 0x0211,
TscActionInProgress = 0x0212,
TscDisconnected = 0x0213,
TscNoWriteAuth = 0x0214,
TscConnKilled = 0x0215,
TscSqlSyntaxError = 0x0216,
TscDbNotSelected = 0x0217,
TscInvalidTableName = 0x0218,
TscExceedSqlLimit = 0x0219,
MndMsgNotProcessed = 0x0300,
MndActionInProgress = 0x0301,
MndActionNeedReprocessed = 0x0302,
MndNoRights = 0x0303,
MndAppError = 0x0304,
MndInvalidConnection = 0x0305,
MndInvalidMsgVersion = 0x0306,
MndInvalidMsgLen = 0x0307,
MndInvalidMsgType = 0x0308,
MndTooManyShellConns = 0x0309,
MndOutOfMemory = 0x030A,
MndInvalidShowobj = 0x030B,
MndInvalidQueryId = 0x030C,
MndInvalidStreamId = 0x030D,
MndInvalidConnId = 0x030E,
MndMnodeIsRunning = 0x0310,
MndFailedToConfigSync = 0x0311,
MndFailedToStartSync = 0x0312,
MndFailedToCreateDir = 0x0313,
MndFailedToInitStep = 0x0314,
MndSdbObjAlreadyThere = 0x0320,
MndSdbError = 0x0321,
MndSdbInvalidTableType = 0x0322,
MndSdbObjNotThere = 0x0323,
MndSdbInvaidMetaRow = 0x0324,
MndSdbInvaidKeyType = 0x0325,
MndDnodeAlreadyExist = 0x0330,
MndDnodeNotExist = 0x0331,
MndVgroupNotExist = 0x0332,
MndNoRemoveMaster = 0x0333,
MndNoEnoughDnodes = 0x0334,
MndClusterCfgInconsistent = 0x0335,
MndInvalidDnodeCfgOption = 0x0336,
MndBalanceEnabled = 0x0337,
MndVgroupNotInDnode = 0x0338,
MndVgroupAlreadyInDnode = 0x0339,
MndDnodeNotFree = 0x033A,
MndInvalidClusterId = 0x033B,
MndNotReady = 0x033C,
MndDnodeIdNotConfigured = 0x033D,
MndDnodeEpNotConfigured = 0x033E,
MndAcctAlreadyExist = 0x0340,
MndInvalidAcct = 0x0341,
MndInvalidAcctOption = 0x0342,
MndAcctExpired = 0x0343,
MndUserAlreadyExist = 0x0350,
MndInvalidUser = 0x0351,
MndInvalidUserFormat = 0x0352,
MndInvalidPassFormat = 0x0353,
MndNoUserFromConn = 0x0354,
MndTooManyUsers = 0x0355,
MndTableAlreadyExist = 0x0360,
MndInvalidTableId = 0x0361,
MndInvalidTableName = 0x0362,
MndInvalidTableType = 0x0363,
MndTooManyTags = 0x0364,
MndTooManyColumns = 0x0365,
MndTooManyTimeseries = 0x0366,
MndNotSuperTable = 0x0367,
MndColNameTooLong = 0x0368,
MndTagAlreayExist = 0x0369,
MndTagNotExist = 0x036A,
MndFieldAlreayExist = 0x036B,
MndFieldNotExist = 0x036C,
MndInvalidStableName = 0x036D,
MndInvalidCreateTableMsg = 0x036E,
MndDbNotSelected = 0x0380,
MndDbAlreadyExist = 0x0381,
MndInvalidDbOption = 0x0382,
MndInvalidDb = 0x0383,
MndMonitorDbForbidden = 0x0384,
MndTooManyDatabases = 0x0385,
MndDbInDropping = 0x0386,
MndVgroupNotReady = 0x0387,
MndInvalidDbOptionDays = 0x0390,
MndInvalidDbOptionKeep = 0x0391,
MndInvalidTopic = 0x0392,
MndInvalidTopicOption = 0x0393,
MndInvalidTopicPartitons = 0x0394,
MndTopicAlreadyExist = 0x0395,
DndMsgNotProcessed = 0x0400,
DndOutOfMemory = 0x0401,
DndNoWriteAccess = 0x0402,
DndInvalidMsgLen = 0x0403,
DndActionInProgress = 0x0404,
DndTooManyVnodes = 0x0405,
VndActionInProgress = 0x0500,
VndMsgNotProcessed = 0x0501,
VndActionNeedReprocessed = 0x0502,
VndInvalidVgroupId = 0x0503,
VndInitFailed = 0x0504,
VndNoDiskspace = 0x0505,
VndNoDiskPermissions = 0x0506,
VndNoSuchFileOrDir = 0x0507,
VndOutOfMemory = 0x0508,
VndAppError = 0x0509,
VndInvalidVresionFile = 0x050A,
VndIsFull = 0x050B,
VndIsFlowctrl = 0x050C,
VndIsDropping = 0x050D,
VndIsBalancing = 0x050E,
VndNotSynced = 0x0511,
VndNoWriteAuth = 0x0512,
VndIsSyncing = 0x0513,
TdbInvalidTableId = 0x0600,
TdbInvalidTableType = 0x0601,
TdbIvdTbSchemaVersion = 0x0602,
TdbTableAlreadyExist = 0x0603,
TdbInvalidConfig = 0x0604,
TdbInitFailed = 0x0605,
TdbNoDiskspace = 0x0606,
TdbNoDiskPermissions = 0x0607,
TdbFileCorrupted = 0x0608,
TdbOutOfMemory = 0x0609,
TdbTagVerOutOfDate = 0x060A,
TdbTimestampOutOfRange = 0x060B,
TdbSubmitMsgMssedUp = 0x060C,
TdbInvalidAction = 0x060D,
TdbInvalidCreateTbMsg = 0x060E,
TdbNoTableDataInMem = 0x060F,
TdbFileAlreadyExists = 0x0610,
TdbTableReconfigure = 0x0611,
TdbIvdCreateTableInfo = 0x0612,
TdbNoAvailDisk = 0x0613,
TdbMessedMsg = 0x0614,
TdbIvldTagVal = 0x0615,
QryInvalidQhandle = 0x0700,
QryInvalidMsg = 0x0701,
QryNoDiskspace = 0x0702,
QryOutOfMemory = 0x0703,
QryAppError = 0x0704,
QryDupJoinKey = 0x0705,
QryExceedTagsLimit = 0x0706,
QryNotReady = 0x0707,
QryHasRsp = 0x0708,
QryInExec = 0x0709,
QryTooManyTimewindow = 0x070A,
QryNotEnoughBuffer = 0x070B,
QryInconsistan = 0x070C,
GrantExpired = 0x0800,
GrantDnodeLimited = 0x0801,
GrantAcctLimited = 0x0802,
GrantTimeseriesLimited = 0x0803,
GrantDbLimited = 0x0804,
GrantUserLimited = 0x0805,
GrantConnLimited = 0x0806,
GrantStreamLimited = 0x0807,
GrantSpeedLimited = 0x0808,
GrantStorageLimited = 0x0809,
GrantQuerytimeLimited = 0x080A,
GrantCpuLimited = 0x080B,
SynInvalidConfig = 0x0900,
SynNotEnabled = 0x0901,
SynInvalidVersion = 0x0902,
SynConfirmExpired = 0x0903,
SynTooManyFwdinfo = 0x0904,
SynMismatchedProtocol = 0x0905,
SynMismatchedClusterid = 0x0906,
SynMismatchedSignature = 0x0907,
SynInvalidChecksum = 0x0908,
SynInvalidMsglen = 0x0909,
SynInvalidMsgtype = 0x090A,
WalAppError = 0x1000,
WalFileCorrupted = 0x1001,
WalSizeLimit = 0x1002,
HttpServerOffline = 0x1100,
HttpUnsupportUrl = 0x1101,
HttpInvalidUrl = 0x1102,
HttpNoEnoughMemory = 0x1103,
HttpRequsetTooBig = 0x1104,
HttpNoAuthInfo = 0x1105,
HttpNoMsgInput = 0x1106,
HttpNoSqlInput = 0x1107,
HttpNoExecUsedb = 0x1108,
HttpSessionFull = 0x1109,
HttpGenTaosdTokenErr = 0x110A,
HttpInvalidMultiRequest = 0x110B,
HttpCreateGzipFailed = 0x110C,
HttpFinishGzipFailed = 0x110D,
HttpLoginFailed = 0x110E,
HttpInvalidVersion = 0x1120,
HttpInvalidContentLength = 0x1121,
HttpInvalidAuthType = 0x1122,
HttpInvalidAuthFormat = 0x1123,
HttpInvalidBasicAuth = 0x1124,
HttpInvalidTaosdAuth = 0x1125,
HttpParseMethodFailed = 0x1126,
HttpParseTargetFailed = 0x1127,
HttpParseVersionFailed = 0x1128,
HttpParseSpFailed = 0x1129,
HttpParseStatusFailed = 0x112A,
HttpParsePhraseFailed = 0x112B,
HttpParseCrlfFailed = 0x112C,
HttpParseHeaderFailed = 0x112D,
HttpParseHeaderKeyFailed = 0x112E,
HttpParseHeaderValFailed = 0x112F,
HttpParseChunkSizeFailed = 0x1130,
HttpParseChunkFailed = 0x1131,
HttpParseEndFailed = 0x1132,
HttpParseInvalidState = 0x1134,
HttpParseErrorState = 0x1135,
HttpGcQueryNull = 0x1150,
HttpGcQuerySize = 0x1151,
HttpGcReqParseError = 0x1152,
HttpTgDbNotInput = 0x1160,
HttpTgDbTooLong = 0x1161,
HttpTgInvalidJson = 0x1162,
HttpTgMetricsNull = 0x1163,
HttpTgMetricsSize = 0x1164,
HttpTgMetricNull = 0x1165,
HttpTgMetricType = 0x1166,
HttpTgMetricNameNull = 0x1167,
HttpTgMetricNameLong = 0x1168,
HttpTgTimestampNull = 0x1169,
HttpTgTimestampType = 0x116A,
HttpTgTimestampValNull = 0x116B,
HttpTgTagsNull = 0x116C,
HttpTgTagsSize0 = 0x116D,
HttpTgTagsSizeLong = 0x116E,
HttpTgTagNull = 0x116F,
HttpTgTagNameNull = 0x1170,
HttpTgTagNameSize = 0x1171,
HttpTgTagValueType = 0x1172,
HttpTgTagValueNull = 0x1173,
HttpTgTableNull = 0x1174,
HttpTgTableSize = 0x1175,
HttpTgFieldsNull = 0x1176,
HttpTgFieldsSize0 = 0x1177,
HttpTgFieldsSizeLong = 0x1178,
HttpTgFieldNull = 0x1179,
HttpTgFieldNameNull = 0x117A,
HttpTgFieldNameSize = 0x117B,
HttpTgFieldValueType = 0x117C,
HttpTgFieldValueNull = 0x117D,
HttpTgHostNotString = 0x117E,
HttpTgStableNotExist = 0x117F,
HttpOpDbNotInput = 0x1190,
HttpOpDbTooLong = 0x1191,
HttpOpInvalidJson = 0x1192,
HttpOpMetricsNull = 0x1193,
HttpOpMetricsSize = 0x1194,
HttpOpMetricNull = 0x1195,
HttpOpMetricType = 0x1196,
HttpOpMetricNameNull = 0x1197,
HttpOpMetricNameLong = 0x1198,
HttpOpTimestampNull = 0x1199,
HttpOpTimestampType = 0x119A,
HttpOpTimestampValNull = 0x119B,
HttpOpTagsNull = 0x119C,
HttpOpTagsSize0 = 0x119D,
HttpOpTagsSizeLong = 0x119E,
HttpOpTagNull = 0x119F,
HttpOpTagNameNull = 0x11A0,
HttpOpTagNameSize = 0x11A1,
HttpOpTagValueType = 0x11A2,
HttpOpTagValueNull = 0x11A3,
HttpOpTagValueTooLong = 0x11A4,
HttpOpValueNull = 0x11A5,
HttpOpValueType = 0x11A6,
OdbcOom = 0x2100,
OdbcConvCharNotNum = 0x2101,
OdbcConvUndef = 0x2102,
OdbcConvTruncFrac = 0x2103,
OdbcConvTrunc = 0x2104,
OdbcConvNotSupport = 0x2105,
OdbcConvOor = 0x2106,
OdbcOutOfRange = 0x2107,
OdbcNotSupport = 0x2108,
OdbcInvalidHandle = 0x2109,
OdbcNoResult = 0x210a,
OdbcNoFields = 0x210b,
OdbcInvalidCursor = 0x210c,
OdbcStatementNotReady = 0x210d,
OdbcConnectionBusy = 0x210e,
OdbcBadConnstr = 0x210f,
OdbcBadArg = 0x2110,
OdbcConvNotValidTs = 0x2111,
OdbcConvSrcTooLarge = 0x2112,
OdbcConvSrcBadSeq = 0x2113,
OdbcConvSrcIncomplete = 0x2114,
OdbcConvSrcGeneral = 0x2115,
FsOutOfMemory = 0x2200,
FsInvldCfg = 0x2201,
FsTooManyMount = 0x2202,
FsDupPrimary = 0x2203,
FsNoPrimaryDisk = 0x2204,
FsNoMountAtTier = 0x2205,
FsFileAlreadyExists = 0x2206,
FsInvldLevel = 0x2207,
FsNoValidDisk = 0x2208,
#[num_enum(default)]
Unknown = 0xffff,
}
use TaosCode::*;
impl fmt::Display for TaosCode {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", *self as i32)
}
}
impl TaosCode {
pub fn success(&self) -> bool {
matches!(self, Success)
}
pub fn rpc_action_in_progress(&self) -> bool {
matches!(self, RpcActionInProgress)
}
pub fn rpc_auth_required(&self) -> bool {
matches!(self, RpcAuthRequired)
}
pub fn rpc_auth_failure(&self) -> bool {
matches!(self, RpcAuthFailure)
}
pub fn rpc_redirect(&self) -> bool {
matches!(self, RpcRedirect)
}
pub fn rpc_not_ready(&self) -> bool {
matches!(self, RpcNotReady)
}
pub fn rpc_already_processed(&self) -> bool {
matches!(self, RpcAlreadyProcessed)
}
pub fn rpc_last_session_not_finished(&self) -> bool {
matches!(self, RpcLastSessionNotFinished)
}
pub fn rpc_mismatched_link_id(&self) -> bool {
matches!(self, RpcMismatchedLinkId)
}
pub fn rpc_too_slow(&self) -> bool {
matches!(self, RpcTooSlow)
}
pub fn rpc_max_sessions(&self) -> bool {
matches!(self, RpcMaxSessions)
}
pub fn rpc_network_unavail(&self) -> bool {
matches!(self, RpcNetworkUnavail)
}
pub fn rpc_app_error(&self) -> bool {
matches!(self, RpcAppError)
}
pub fn rpc_unexpected_response(&self) -> bool {
matches!(self, RpcUnexpectedResponse)
}
pub fn rpc_invalid_value(&self) -> bool {
matches!(self, RpcInvalidValue)
}
pub fn rpc_invalid_tran_id(&self) -> bool {
matches!(self, RpcInvalidTranId)
}
pub fn rpc_invalid_session_id(&self) -> bool {
matches!(self, RpcInvalidSessionId)
}
pub fn rpc_invalid_msg_type(&self) -> bool {
matches!(self, RpcInvalidMsgType)
}
pub fn rpc_invalid_response_type(&self) -> bool {
matches!(self, RpcInvalidResponseType)
}
pub fn rpc_invalid_time_stamp(&self) -> bool {
matches!(self, RpcInvalidTimeStamp)
}
pub fn app_not_ready(&self) -> bool {
matches!(self, AppNotReady)
}
pub fn rpc_fqdn_error(&self) -> bool {
matches!(self, RpcFqdnError)
}
pub fn rpc_invalid_version(&self) -> bool {
matches!(self, RpcInvalidVersion)
}
pub fn com_ops_not_support(&self) -> bool {
matches!(self, ComOpsNotSupport)
}
pub fn com_memory_corrupted(&self) -> bool {
matches!(self, ComMemoryCorrupted)
}
pub fn com_out_of_memory(&self) -> bool {
matches!(self, ComOutOfMemory)
}
pub fn com_invalid_cfg_msg(&self) -> bool {
matches!(self, ComInvalidCfgMsg)
}
pub fn com_file_corrupted(&self) -> bool {
matches!(self, ComFileCorrupted)
}
pub fn ref_no_memory(&self) -> bool {
matches!(self, RefNoMemory)
}
pub fn ref_full(&self) -> bool {
matches!(self, RefFull)
}
pub fn ref_id_removed(&self) -> bool {
matches!(self, RefIdRemoved)
}
pub fn ref_invalid_id(&self) -> bool {
matches!(self, RefInvalidId)
}
pub fn ref_already_exist(&self) -> bool {
matches!(self, RefAlreadyExist)
}
pub fn ref_not_exist(&self) -> bool {
matches!(self, RefNotExist)
}
pub fn tsc_invalid_sql(&self) -> bool {
matches!(self, TscInvalidSql)
}
pub fn tsc_invalid_qhandle(&self) -> bool {
matches!(self, TscInvalidQhandle)
}
pub fn tsc_invalid_time_stamp(&self) -> bool {
matches!(self, TscInvalidTimeStamp)
}
pub fn tsc_invalid_value(&self) -> bool {
matches!(self, TscInvalidValue)
}
pub fn tsc_invalid_version(&self) -> bool {
matches!(self, TscInvalidVersion)
}
pub fn tsc_invalid_ie(&self) -> bool {
matches!(self, TscInvalidIe)
}
pub fn tsc_invalid_fqdn(&self) -> bool {
matches!(self, TscInvalidFqdn)
}
pub fn tsc_invalid_user_length(&self) -> bool {
matches!(self, TscInvalidUserLength)
}
pub fn tsc_invalid_pass_length(&self) -> bool {
matches!(self, TscInvalidPassLength)
}
pub fn tsc_invalid_db_length(&self) -> bool {
matches!(self, TscInvalidDbLength)
}
pub fn tsc_invalid_table_id_length(&self) -> bool {
matches!(self, TscInvalidTableIdLength)
}
pub fn tsc_invalid_connection(&self) -> bool {
matches!(self, TscInvalidConnection)
}
pub fn tsc_out_of_memory(&self) -> bool {
matches!(self, TscOutOfMemory)
}
pub fn tsc_no_diskspace(&self) -> bool {
matches!(self, TscNoDiskspace)
}
pub fn tsc_query_cache_erased(&self) -> bool {
matches!(self, TscQueryCacheErased)
}
pub fn tsc_query_cancelled(&self) -> bool {
matches!(self, TscQueryCancelled)
}
pub fn tsc_sorted_res_too_many(&self) -> bool {
matches!(self, TscSortedResTooMany)
}
pub fn tsc_app_error(&self) -> bool {
matches!(self, TscAppError)
}
pub fn tsc_action_in_progress(&self) -> bool {
matches!(self, TscActionInProgress)
}
pub fn tsc_disconnected(&self) -> bool {
matches!(self, TscDisconnected)
}
pub fn tsc_no_write_auth(&self) -> bool {
matches!(self, TscNoWriteAuth)
}
pub fn tsc_conn_killed(&self) -> bool {
matches!(self, TscConnKilled)
}
pub fn tsc_sql_syntax_error(&self) -> bool {
matches!(self, TscSqlSyntaxError)
}
pub fn tsc_db_not_selected(&self) -> bool {
matches!(self, TscDbNotSelected)
}
pub fn tsc_invalid_table_name(&self) -> bool {
matches!(self, TscInvalidTableName)
}
pub fn tsc_exceed_sql_limit(&self) -> bool {
matches!(self, TscExceedSqlLimit)
}
pub fn mnd_msg_not_processed(&self) -> bool {
matches!(self, MndMsgNotProcessed)
}
pub fn mnd_action_in_progress(&self) -> bool {
matches!(self, MndActionInProgress)
}
pub fn mnd_action_need_reprocessed(&self) -> bool {
matches!(self, MndActionNeedReprocessed)
}
pub fn mnd_no_rights(&self) -> bool {
matches!(self, MndNoRights)
}
pub fn mnd_app_error(&self) -> bool {
matches!(self, MndAppError)
}
pub fn mnd_invalid_connection(&self) -> bool {
matches!(self, MndInvalidConnection)
}
pub fn mnd_invalid_msg_version(&self) -> bool {
matches!(self, MndInvalidMsgVersion)
}
pub fn mnd_invalid_msg_len(&self) -> bool {
matches!(self, MndInvalidMsgLen)
}
pub fn mnd_invalid_msg_type(&self) -> bool {
matches!(self, MndInvalidMsgType)
}
pub fn mnd_too_many_shell_conns(&self) -> bool {
matches!(self, MndTooManyShellConns)
}
pub fn mnd_out_of_memory(&self) -> bool {
matches!(self, MndOutOfMemory)
}
pub fn mnd_invalid_showobj(&self) -> bool {
matches!(self, MndInvalidShowobj)
}
pub fn mnd_invalid_query_id(&self) -> bool {
matches!(self, MndInvalidQueryId)
}
pub fn mnd_invalid_stream_id(&self) -> bool {
matches!(self, MndInvalidStreamId)
}
pub fn mnd_invalid_conn_id(&self) -> bool {
matches!(self, MndInvalidConnId)
}
pub fn mnd_mnode_is_running(&self) -> bool {
matches!(self, MndMnodeIsRunning)
}
pub fn mnd_failed_to_config_sync(&self) -> bool {
matches!(self, MndFailedToConfigSync)
}
pub fn mnd_failed_to_start_sync(&self) -> bool {
matches!(self, MndFailedToStartSync)
}
pub fn mnd_failed_to_create_dir(&self) -> bool {
matches!(self, MndFailedToCreateDir)
}
pub fn mnd_failed_to_init_step(&self) -> bool {
matches!(self, MndFailedToInitStep)
}
pub fn mnd_sdb_obj_already_there(&self) -> bool {
matches!(self, MndSdbObjAlreadyThere)
}
pub fn mnd_sdb_error(&self) -> bool {
matches!(self, MndSdbError)
}
pub fn mnd_sdb_invalid_table_type(&self) -> bool {
matches!(self, MndSdbInvalidTableType)
}
pub fn mnd_sdb_obj_not_there(&self) -> bool {
matches!(self, MndSdbObjNotThere)
}
pub fn mnd_sdb_invaid_meta_row(&self) -> bool {
matches!(self, MndSdbInvaidMetaRow)
}
pub fn mnd_sdb_invaid_key_type(&self) -> bool {
matches!(self, MndSdbInvaidKeyType)
}
pub fn mnd_dnode_already_exist(&self) -> bool {
matches!(self, MndDnodeAlreadyExist)
}
pub fn mnd_dnode_not_exist(&self) -> bool {
matches!(self, MndDnodeNotExist)
}
pub fn mnd_vgroup_not_exist(&self) -> bool {
matches!(self, MndVgroupNotExist)
}
pub fn mnd_no_remove_master(&self) -> bool {
matches!(self, MndNoRemoveMaster)
}
pub fn mnd_no_enough_dnodes(&self) -> bool {
matches!(self, MndNoEnoughDnodes)
}
pub fn mnd_cluster_cfg_inconsistent(&self) -> bool {
matches!(self, MndClusterCfgInconsistent)
}
pub fn mnd_invalid_dnode_cfg_option(&self) -> bool {
matches!(self, MndInvalidDnodeCfgOption)
}
pub fn mnd_balance_enabled(&self) -> bool {
matches!(self, MndBalanceEnabled)
}
pub fn mnd_vgroup_not_in_dnode(&self) -> bool {
matches!(self, MndVgroupNotInDnode)
}
pub fn mnd_vgroup_already_in_dnode(&self) -> bool {
matches!(self, MndVgroupAlreadyInDnode)
}
pub fn mnd_dnode_not_free(&self) -> bool {
matches!(self, MndDnodeNotFree)
}
pub fn mnd_invalid_cluster_id(&self) -> bool {
matches!(self, MndInvalidClusterId)
}
pub fn mnd_not_ready(&self) -> bool {
matches!(self, MndNotReady)
}
pub fn mnd_dnode_id_not_configured(&self) -> bool {
matches!(self, MndDnodeIdNotConfigured)
}
pub fn mnd_dnode_ep_not_configured(&self) -> bool {
matches!(self, MndDnodeEpNotConfigured)
}
pub fn mnd_acct_already_exist(&self) -> bool {
matches!(self, MndAcctAlreadyExist)
}
pub fn mnd_invalid_acct(&self) -> bool {
matches!(self, MndInvalidAcct)
}
pub fn mnd_invalid_acct_option(&self) -> bool {
matches!(self, MndInvalidAcctOption)
}
pub fn mnd_acct_expired(&self) -> bool {
matches!(self, MndAcctExpired)
}
pub fn mnd_user_already_exist(&self) -> bool {
matches!(self, MndUserAlreadyExist)
}
pub fn mnd_invalid_user(&self) -> bool {
matches!(self, MndInvalidUser)
}
pub fn mnd_invalid_user_format(&self) -> bool {
matches!(self, MndInvalidUserFormat)
}
pub fn mnd_invalid_pass_format(&self) -> bool {
matches!(self, MndInvalidPassFormat)
}
pub fn mnd_no_user_from_conn(&self) -> bool {
matches!(self, MndNoUserFromConn)
}
pub fn mnd_too_many_users(&self) -> bool {
matches!(self, MndTooManyUsers)
}
pub fn mnd_table_already_exist(&self) -> bool {
matches!(self, MndTableAlreadyExist)
}
pub fn mnd_invalid_table_id(&self) -> bool {
matches!(self, MndInvalidTableId)
}
pub fn mnd_invalid_table_name(&self) -> bool {
matches!(self, MndInvalidTableName)
}
pub fn mnd_invalid_table_type(&self) -> bool {
matches!(self, MndInvalidTableType)
}
pub fn mnd_too_many_tags(&self) -> bool {
matches!(self, MndTooManyTags)
}
pub fn mnd_too_many_columns(&self) -> bool {
matches!(self, MndTooManyColumns)
}
pub fn mnd_too_many_timeseries(&self) -> bool {
matches!(self, MndTooManyTimeseries)
}
pub fn mnd_not_super_table(&self) -> bool {
matches!(self, MndNotSuperTable)
}
pub fn mnd_col_name_too_long(&self) -> bool {
matches!(self, MndColNameTooLong)
}
pub fn mnd_tag_alreay_exist(&self) -> bool {
matches!(self, MndTagAlreayExist)
}
pub fn mnd_tag_not_exist(&self) -> bool {
matches!(self, MndTagNotExist)
}
pub fn mnd_field_alreay_exist(&self) -> bool {
matches!(self, MndFieldAlreayExist)
}
pub fn mnd_field_not_exist(&self) -> bool {
matches!(self, MndFieldNotExist)
}
pub fn mnd_invalid_stable_name(&self) -> bool {
matches!(self, MndInvalidStableName)
}
pub fn mnd_invalid_create_table_msg(&self) -> bool {
matches!(self, MndInvalidCreateTableMsg)
}
pub fn mnd_db_not_selected(&self) -> bool {
matches!(self, MndDbNotSelected)
}
pub fn mnd_db_already_exist(&self) -> bool {
matches!(self, MndDbAlreadyExist)
}
pub fn mnd_invalid_db_option(&self) -> bool {
matches!(self, MndInvalidDbOption)
}
pub fn mnd_invalid_db(&self) -> bool {
matches!(self, MndInvalidDb)
}
pub fn mnd_monitor_db_forbidden(&self) -> bool {
matches!(self, MndMonitorDbForbidden)
}
pub fn mnd_too_many_databases(&self) -> bool {
matches!(self, MndTooManyDatabases)
}
pub fn mnd_db_in_dropping(&self) -> bool {
matches!(self, MndDbInDropping)
}
pub fn mnd_vgroup_not_ready(&self) -> bool {
matches!(self, MndVgroupNotReady)
}
pub fn mnd_invalid_db_option_days(&self) -> bool {
matches!(self, MndInvalidDbOptionDays)
}
pub fn mnd_invalid_db_option_keep(&self) -> bool {
matches!(self, MndInvalidDbOptionKeep)
}
pub fn mnd_invalid_topic(&self) -> bool {
matches!(self, MndInvalidTopic)
}
pub fn mnd_invalid_topic_option(&self) -> bool {
matches!(self, MndInvalidTopicOption)
}
pub fn mnd_invalid_topic_partitons(&self) -> bool {
matches!(self, MndInvalidTopicPartitons)
}
pub fn mnd_topic_already_exist(&self) -> bool {
matches!(self, MndTopicAlreadyExist)
}
pub fn dnd_msg_not_processed(&self) -> bool {
matches!(self, DndMsgNotProcessed)
}
pub fn dnd_out_of_memory(&self) -> bool {
matches!(self, DndOutOfMemory)
}
pub fn dnd_no_write_access(&self) -> bool {
matches!(self, DndNoWriteAccess)
}
pub fn dnd_invalid_msg_len(&self) -> bool {
matches!(self, DndInvalidMsgLen)
}
pub fn dnd_action_in_progress(&self) -> bool {
matches!(self, DndActionInProgress)
}
pub fn dnd_too_many_vnodes(&self) -> bool {
matches!(self, DndTooManyVnodes)
}
pub fn vnd_action_in_progress(&self) -> bool {
matches!(self, VndActionInProgress)
}
pub fn vnd_msg_not_processed(&self) -> bool {
matches!(self, VndMsgNotProcessed)
}
pub fn vnd_action_need_reprocessed(&self) -> bool {
matches!(self, VndActionNeedReprocessed)
}
pub fn vnd_invalid_vgroup_id(&self) -> bool {
matches!(self, VndInvalidVgroupId)
}
pub fn vnd_init_failed(&self) -> bool {
matches!(self, VndInitFailed)
}
pub fn vnd_no_diskspace(&self) -> bool {
matches!(self, VndNoDiskspace)
}
pub fn vnd_no_disk_permissions(&self) -> bool {
matches!(self, VndNoDiskPermissions)
}
pub fn vnd_no_such_file_or_dir(&self) -> bool {
matches!(self, VndNoSuchFileOrDir)
}
pub fn vnd_out_of_memory(&self) -> bool {
matches!(self, VndOutOfMemory)
}
pub fn vnd_app_error(&self) -> bool {
matches!(self, VndAppError)
}
pub fn vnd_invalid_vresion_file(&self) -> bool {
matches!(self, VndInvalidVresionFile)
}
pub fn vnd_is_full(&self) -> bool {
matches!(self, VndIsFull)
}
pub fn vnd_is_flowctrl(&self) -> bool {
matches!(self, VndIsFlowctrl)
}
pub fn vnd_is_dropping(&self) -> bool {
matches!(self, VndIsDropping)
}
pub fn vnd_is_balancing(&self) -> bool {
matches!(self, VndIsBalancing)
}
pub fn vnd_not_synced(&self) -> bool {
matches!(self, VndNotSynced)
}
pub fn vnd_no_write_auth(&self) -> bool {
matches!(self, VndNoWriteAuth)
}
pub fn vnd_is_syncing(&self) -> bool {
matches!(self, VndIsSyncing)
}
pub fn tdb_invalid_table_id(&self) -> bool {
matches!(self, TdbInvalidTableId)
}
pub fn tdb_invalid_table_type(&self) -> bool {
matches!(self, TdbInvalidTableType)
}
pub fn tdb_ivd_tb_schema_version(&self) -> bool {
matches!(self, TdbIvdTbSchemaVersion)
}
pub fn tdb_table_already_exist(&self) -> bool {
matches!(self, TdbTableAlreadyExist)
}
pub fn tdb_invalid_config(&self) -> bool {
matches!(self, TdbInvalidConfig)
}
pub fn tdb_init_failed(&self) -> bool {
matches!(self, TdbInitFailed)
}
pub fn tdb_no_diskspace(&self) -> bool {
matches!(self, TdbNoDiskspace)
}
pub fn tdb_no_disk_permissions(&self) -> bool {
matches!(self, TdbNoDiskPermissions)
}
pub fn tdb_file_corrupted(&self) -> bool {
matches!(self, TdbFileCorrupted)
}
pub fn tdb_out_of_memory(&self) -> bool {
matches!(self, TdbOutOfMemory)
}
pub fn tdb_tag_ver_out_of_date(&self) -> bool {
matches!(self, TdbTagVerOutOfDate)
}
pub fn tdb_timestamp_out_of_range(&self) -> bool {
matches!(self, TdbTimestampOutOfRange)
}
pub fn tdb_submit_msg_mssed_up(&self) -> bool {
matches!(self, TdbSubmitMsgMssedUp)
}
pub fn tdb_invalid_action(&self) -> bool {
matches!(self, TdbInvalidAction)
}
pub fn tdb_invalid_create_tb_msg(&self) -> bool {
matches!(self, TdbInvalidCreateTbMsg)
}
pub fn tdb_no_table_data_in_mem(&self) -> bool {
matches!(self, TdbNoTableDataInMem)
}
pub fn tdb_file_already_exists(&self) -> bool {
matches!(self, TdbFileAlreadyExists)
}
pub fn tdb_table_reconfigure(&self) -> bool {
matches!(self, TdbTableReconfigure)
}
pub fn tdb_ivd_create_table_info(&self) -> bool {
matches!(self, TdbIvdCreateTableInfo)
}
pub fn tdb_no_avail_disk(&self) -> bool {
matches!(self, TdbNoAvailDisk)
}
pub fn tdb_messed_msg(&self) -> bool {
matches!(self, TdbMessedMsg)
}
pub fn tdb_ivld_tag_val(&self) -> bool {
matches!(self, TdbIvldTagVal)
}
pub fn qry_invalid_qhandle(&self) -> bool {
matches!(self, QryInvalidQhandle)
}
pub fn qry_invalid_msg(&self) -> bool {
matches!(self, QryInvalidMsg)
}
pub fn qry_no_diskspace(&self) -> bool {
matches!(self, QryNoDiskspace)
}
pub fn qry_out_of_memory(&self) -> bool {
matches!(self, QryOutOfMemory)
}
pub fn qry_app_error(&self) -> bool {
matches!(self, QryAppError)
}
pub fn qry_dup_join_key(&self) -> bool {
matches!(self, QryDupJoinKey)
}
pub fn qry_exceed_tags_limit(&self) -> bool {
matches!(self, QryExceedTagsLimit)
}
pub fn qry_not_ready(&self) -> bool {
matches!(self, QryNotReady)
}
pub fn qry_has_rsp(&self) -> bool {
matches!(self, QryHasRsp)
}
pub fn qry_in_exec(&self) -> bool {
matches!(self, QryInExec)
}
pub fn qry_too_many_timewindow(&self) -> bool {
matches!(self, QryTooManyTimewindow)
}
pub fn qry_not_enough_buffer(&self) -> bool {
matches!(self, QryNotEnoughBuffer)
}
pub fn qry_inconsistan(&self) -> bool {
matches!(self, QryInconsistan)
}
pub fn grant_expired(&self) -> bool {
matches!(self, GrantExpired)
}
pub fn grant_dnode_limited(&self) -> bool {
matches!(self, GrantDnodeLimited)
}
pub fn grant_acct_limited(&self) -> bool {
matches!(self, GrantAcctLimited)
}
pub fn grant_timeseries_limited(&self) -> bool {
matches!(self, GrantTimeseriesLimited)
}
pub fn grant_db_limited(&self) -> bool {
matches!(self, GrantDbLimited)
}
pub fn grant_user_limited(&self) -> bool {
matches!(self, GrantUserLimited)
}
pub fn grant_conn_limited(&self) -> bool {
matches!(self, GrantConnLimited)
}
pub fn grant_stream_limited(&self) -> bool {
matches!(self, GrantStreamLimited)
}
pub fn grant_speed_limited(&self) -> bool {
matches!(self, GrantSpeedLimited)
}
pub fn grant_storage_limited(&self) -> bool {
matches!(self, GrantStorageLimited)
}
pub fn grant_querytime_limited(&self) -> bool {
matches!(self, GrantQuerytimeLimited)
}
pub fn grant_cpu_limited(&self) -> bool {
matches!(self, GrantCpuLimited)
}
pub fn syn_invalid_config(&self) -> bool {
matches!(self, SynInvalidConfig)
}
pub fn syn_not_enabled(&self) -> bool {
matches!(self, SynNotEnabled)
}
pub fn syn_invalid_version(&self) -> bool {
matches!(self, SynInvalidVersion)
}
pub fn syn_confirm_expired(&self) -> bool {
matches!(self, SynConfirmExpired)
}
pub fn syn_too_many_fwdinfo(&self) -> bool {
matches!(self, SynTooManyFwdinfo)
}
pub fn syn_mismatched_protocol(&self) -> bool {
matches!(self, SynMismatchedProtocol)
}
pub fn syn_mismatched_clusterid(&self) -> bool {
matches!(self, SynMismatchedClusterid)
}
pub fn syn_mismatched_signature(&self) -> bool {
matches!(self, SynMismatchedSignature)
}
pub fn syn_invalid_checksum(&self) -> bool {
matches!(self, SynInvalidChecksum)
}
pub fn syn_invalid_msglen(&self) -> bool {
matches!(self, SynInvalidMsglen)
}
pub fn syn_invalid_msgtype(&self) -> bool {
matches!(self, SynInvalidMsgtype)
}
pub fn wal_app_error(&self) -> bool {
matches!(self, WalAppError)
}
pub fn wal_file_corrupted(&self) -> bool {
matches!(self, WalFileCorrupted)
}
pub fn wal_size_limit(&self) -> bool {
matches!(self, WalSizeLimit)
}
pub fn http_server_offline(&self) -> bool {
matches!(self, HttpServerOffline)
}
pub fn http_unsupport_url(&self) -> bool {
matches!(self, HttpUnsupportUrl)
}
pub fn http_invalid_url(&self) -> bool {
matches!(self, HttpInvalidUrl)
}
pub fn http_no_enough_memory(&self) -> bool {
matches!(self, HttpNoEnoughMemory)
}
pub fn http_requset_too_big(&self) -> bool {
matches!(self, HttpRequsetTooBig)
}
pub fn http_no_auth_info(&self) -> bool {
matches!(self, HttpNoAuthInfo)
}
pub fn http_no_msg_input(&self) -> bool {
matches!(self, HttpNoMsgInput)
}
pub fn http_no_sql_input(&self) -> bool {
matches!(self, HttpNoSqlInput)
}
pub fn http_no_exec_usedb(&self) -> bool {
matches!(self, HttpNoExecUsedb)
}
pub fn http_session_full(&self) -> bool {
matches!(self, HttpSessionFull)
}
pub fn http_gen_taosd_token_err(&self) -> bool {
matches!(self, HttpGenTaosdTokenErr)
}
pub fn http_invalid_multi_request(&self) -> bool {
matches!(self, HttpInvalidMultiRequest)
}
pub fn http_create_gzip_failed(&self) -> bool {
matches!(self, HttpCreateGzipFailed)
}
pub fn http_finish_gzip_failed(&self) -> bool {
matches!(self, HttpFinishGzipFailed)
}
pub fn http_login_failed(&self) -> bool {
matches!(self, HttpLoginFailed)
}
pub fn http_invalid_version(&self) -> bool {
matches!(self, HttpInvalidVersion)
}
pub fn http_invalid_content_length(&self) -> bool {
matches!(self, HttpInvalidContentLength)
}
pub fn http_invalid_auth_type(&self) -> bool {
matches!(self, HttpInvalidAuthType)
}
pub fn http_invalid_auth_format(&self) -> bool {
matches!(self, HttpInvalidAuthFormat)
}
pub fn http_invalid_basic_auth(&self) -> bool {
matches!(self, HttpInvalidBasicAuth)
}
pub fn http_invalid_taosd_auth(&self) -> bool {
matches!(self, HttpInvalidTaosdAuth)
}
pub fn http_parse_method_failed(&self) -> bool {
matches!(self, HttpParseMethodFailed)
}
pub fn http_parse_target_failed(&self) -> bool {
matches!(self, HttpParseTargetFailed)
}
pub fn http_parse_version_failed(&self) -> bool {
matches!(self, HttpParseVersionFailed)
}
pub fn http_parse_sp_failed(&self) -> bool {
matches!(self, HttpParseSpFailed)
}
pub fn http_parse_status_failed(&self) -> bool {
matches!(self, HttpParseStatusFailed)
}
pub fn http_parse_phrase_failed(&self) -> bool {
matches!(self, HttpParsePhraseFailed)
}
pub fn http_parse_crlf_failed(&self) -> bool {
matches!(self, HttpParseCrlfFailed)
}
pub fn http_parse_header_failed(&self) -> bool {
matches!(self, HttpParseHeaderFailed)
}
pub fn http_parse_header_key_failed(&self) -> bool {
matches!(self, HttpParseHeaderKeyFailed)
}
pub fn http_parse_header_val_failed(&self) -> bool {
matches!(self, HttpParseHeaderValFailed)
}
pub fn http_parse_chunk_size_failed(&self) -> bool {
matches!(self, HttpParseChunkSizeFailed)
}
pub fn http_parse_chunk_failed(&self) -> bool {
matches!(self, HttpParseChunkFailed)
}
pub fn http_parse_end_failed(&self) -> bool {
matches!(self, HttpParseEndFailed)
}
pub fn http_parse_invalid_state(&self) -> bool {
matches!(self, HttpParseInvalidState)
}
pub fn http_parse_error_state(&self) -> bool {
matches!(self, HttpParseErrorState)
}
pub fn http_gc_query_null(&self) -> bool {
matches!(self, HttpGcQueryNull)
}
pub fn http_gc_query_size(&self) -> bool {
matches!(self, HttpGcQuerySize)
}
pub fn http_gc_req_parse_error(&self) -> bool {
matches!(self, HttpGcReqParseError)
}
pub fn http_tg_db_not_input(&self) -> bool {
matches!(self, HttpTgDbNotInput)
}
pub fn http_tg_db_too_long(&self) -> bool {
matches!(self, HttpTgDbTooLong)
}
pub fn http_tg_invalid_json(&self) -> bool {
matches!(self, HttpTgInvalidJson)
}
pub fn http_tg_metrics_null(&self) -> bool {
matches!(self, HttpTgMetricsNull)
}
pub fn http_tg_metrics_size(&self) -> bool {
matches!(self, HttpTgMetricsSize)
}
pub fn http_tg_metric_null(&self) -> bool {
matches!(self, HttpTgMetricNull)
}
pub fn http_tg_metric_type(&self) -> bool {
matches!(self, HttpTgMetricType)
}
pub fn http_tg_metric_name_null(&self) -> bool {
matches!(self, HttpTgMetricNameNull)
}
pub fn http_tg_metric_name_long(&self) -> bool {
matches!(self, HttpTgMetricNameLong)
}
pub fn http_tg_timestamp_null(&self) -> bool {
matches!(self, HttpTgTimestampNull)
}
pub fn http_tg_timestamp_type(&self) -> bool {
matches!(self, HttpTgTimestampType)
}
pub fn http_tg_timestamp_val_null(&self) -> bool {
matches!(self, HttpTgTimestampValNull)
}
pub fn http_tg_tags_null(&self) -> bool {
matches!(self, HttpTgTagsNull)
}
pub fn http_tg_tags_size_0(&self) -> bool {
matches!(self, HttpTgTagsSize0)
}
pub fn http_tg_tags_size_long(&self) -> bool {
matches!(self, HttpTgTagsSizeLong)
}
pub fn http_tg_tag_null(&self) -> bool {
matches!(self, HttpTgTagNull)
}
pub fn http_tg_tag_name_null(&self) -> bool {
matches!(self, HttpTgTagNameNull)
}
pub fn http_tg_tag_name_size(&self) -> bool {
matches!(self, HttpTgTagNameSize)
}
pub fn http_tg_tag_value_type(&self) -> bool {
matches!(self, HttpTgTagValueType)
}
pub fn http_tg_tag_value_null(&self) -> bool {
matches!(self, HttpTgTagValueNull)
}
pub fn http_tg_table_null(&self) -> bool {
matches!(self, HttpTgTableNull)
}
pub fn http_tg_table_size(&self) -> bool {
matches!(self, HttpTgTableSize)
}
pub fn http_tg_fields_null(&self) -> bool {
matches!(self, HttpTgFieldsNull)
}
pub fn http_tg_fields_size_0(&self) -> bool {
matches!(self, HttpTgFieldsSize0)
}
pub fn http_tg_fields_size_long(&self) -> bool {
matches!(self, HttpTgFieldsSizeLong)
}
pub fn http_tg_field_null(&self) -> bool {
matches!(self, HttpTgFieldNull)
}
pub fn http_tg_field_name_null(&self) -> bool {
matches!(self, HttpTgFieldNameNull)
}
pub fn http_tg_field_name_size(&self) -> bool {
matches!(self, HttpTgFieldNameSize)
}
pub fn http_tg_field_value_type(&self) -> bool {
matches!(self, HttpTgFieldValueType)
}
pub fn http_tg_field_value_null(&self) -> bool {
matches!(self, HttpTgFieldValueNull)
}
pub fn http_tg_host_not_string(&self) -> bool {
matches!(self, HttpTgHostNotString)
}
pub fn http_tg_stable_not_exist(&self) -> bool {
matches!(self, HttpTgStableNotExist)
}
pub fn http_op_db_not_input(&self) -> bool {
matches!(self, HttpOpDbNotInput)
}
pub fn http_op_db_too_long(&self) -> bool {
matches!(self, HttpOpDbTooLong)
}
pub fn http_op_invalid_json(&self) -> bool {
matches!(self, HttpOpInvalidJson)
}
pub fn http_op_metrics_null(&self) -> bool {
matches!(self, HttpOpMetricsNull)
}
pub fn http_op_metrics_size(&self) -> bool {
matches!(self, HttpOpMetricsSize)
}
pub fn http_op_metric_null(&self) -> bool {
matches!(self, HttpOpMetricNull)
}
pub fn http_op_metric_type(&self) -> bool {
matches!(self, HttpOpMetricType)
}
pub fn http_op_metric_name_null(&self) -> bool {
matches!(self, HttpOpMetricNameNull)
}
pub fn http_op_metric_name_long(&self) -> bool {
matches!(self, HttpOpMetricNameLong)
}
pub fn http_op_timestamp_null(&self) -> bool {
matches!(self, HttpOpTimestampNull)
}
pub fn http_op_timestamp_type(&self) -> bool {
matches!(self, HttpOpTimestampType)
}
pub fn http_op_timestamp_val_null(&self) -> bool {
matches!(self, HttpOpTimestampValNull)
}
pub fn http_op_tags_null(&self) -> bool {
matches!(self, HttpOpTagsNull)
}
pub fn http_op_tags_size_0(&self) -> bool {
matches!(self, HttpOpTagsSize0)
}
pub fn http_op_tags_size_long(&self) -> bool {
matches!(self, HttpOpTagsSizeLong)
}
pub fn http_op_tag_null(&self) -> bool {
matches!(self, HttpOpTagNull)
}
pub fn http_op_tag_name_null(&self) -> bool {
matches!(self, HttpOpTagNameNull)
}
pub fn http_op_tag_name_size(&self) -> bool {
matches!(self, HttpOpTagNameSize)
}
pub fn http_op_tag_value_type(&self) -> bool {
matches!(self, HttpOpTagValueType)
}
pub fn http_op_tag_value_null(&self) -> bool {
matches!(self, HttpOpTagValueNull)
}
pub fn http_op_tag_value_too_long(&self) -> bool {
matches!(self, HttpOpTagValueTooLong)
}
pub fn http_op_value_null(&self) -> bool {
matches!(self, HttpOpValueNull)
}
pub fn http_op_value_type(&self) -> bool {
matches!(self, HttpOpValueType)
}
pub fn odbc_oom(&self) -> bool {
matches!(self, OdbcOom)
}
pub fn odbc_conv_char_not_num(&self) -> bool {
matches!(self, OdbcConvCharNotNum)
}
pub fn odbc_conv_undef(&self) -> bool {
matches!(self, OdbcConvUndef)
}
pub fn odbc_conv_trunc_frac(&self) -> bool {
matches!(self, OdbcConvTruncFrac)
}
pub fn odbc_conv_trunc(&self) -> bool {
matches!(self, OdbcConvTrunc)
}
pub fn odbc_conv_not_support(&self) -> bool {
matches!(self, OdbcConvNotSupport)
}
pub fn odbc_conv_oor(&self) -> bool {
matches!(self, OdbcConvOor)
}
pub fn odbc_out_of_range(&self) -> bool {
matches!(self, OdbcOutOfRange)
}
pub fn odbc_not_support(&self) -> bool {
matches!(self, OdbcNotSupport)
}
pub fn odbc_invalid_handle(&self) -> bool {
matches!(self, OdbcInvalidHandle)
}
pub fn odbc_no_result(&self) -> bool {
matches!(self, OdbcNoResult)
}
pub fn odbc_no_fields(&self) -> bool {
matches!(self, OdbcNoFields)
}
pub fn odbc_invalid_cursor(&self) -> bool {
matches!(self, OdbcInvalidCursor)
}
pub fn odbc_statement_not_ready(&self) -> bool {
matches!(self, OdbcStatementNotReady)
}
pub fn odbc_connection_busy(&self) -> bool {
matches!(self, OdbcConnectionBusy)
}
pub fn odbc_bad_connstr(&self) -> bool {
matches!(self, OdbcBadConnstr)
}
pub fn odbc_bad_arg(&self) -> bool {
matches!(self, OdbcBadArg)
}
pub fn odbc_conv_not_valid_ts(&self) -> bool {
matches!(self, OdbcConvNotValidTs)
}
pub fn odbc_conv_src_too_large(&self) -> bool {
matches!(self, OdbcConvSrcTooLarge)
}
pub fn odbc_conv_src_bad_seq(&self) -> bool {
matches!(self, OdbcConvSrcBadSeq)
}
pub fn odbc_conv_src_incomplete(&self) -> bool {
matches!(self, OdbcConvSrcIncomplete)
}
pub fn odbc_conv_src_general(&self) -> bool {
matches!(self, OdbcConvSrcGeneral)
}
pub fn fs_out_of_memory(&self) -> bool {
matches!(self, FsOutOfMemory)
}
pub fn fs_invld_cfg(&self) -> bool {
matches!(self, FsInvldCfg)
}
pub fn fs_too_many_mount(&self) -> bool {
matches!(self, FsTooManyMount)
}
pub fn fs_dup_primary(&self) -> bool {
matches!(self, FsDupPrimary)
}
pub fn fs_no_primary_disk(&self) -> bool {
matches!(self, FsNoPrimaryDisk)
}
pub fn fs_no_mount_at_tier(&self) -> bool {
matches!(self, FsNoMountAtTier)
}
pub fn fs_file_already_exists(&self) -> bool {
matches!(self, FsFileAlreadyExists)
}
pub fn fs_invld_level(&self) -> bool {
matches!(self, FsInvldLevel)
}
pub fn fs_no_valid_disk(&self) -> bool {
matches!(self, FsNoValidDisk)
}
}