ssip_client_async/
constants.rs1use crate::types::ReturnCode;
11
12pub const OK_LANGUAGE_SET: ReturnCode = 201;
14
15pub const OK_PRIORITY_SET: ReturnCode = 202;
17
18pub const OK_RATE_SET: ReturnCode = 203;
20
21pub const OK_PITCH_SET: ReturnCode = 204;
23
24pub const OK_PUNCTUATION_SET: ReturnCode = 205;
26
27pub const OK_CAP_LET_RECOGN_SET: ReturnCode = 206;
29
30pub const OK_SPELLING_SET: ReturnCode = 207;
32
33pub const OK_CLIENT_NAME_SET: ReturnCode = 208;
35
36pub const OK_VOICE_SET: ReturnCode = 209;
38
39pub const OK_STOPPED: ReturnCode = 210;
41
42pub const OK_PAUSED: ReturnCode = 211;
44
45pub const OK_RESUMED: ReturnCode = 212;
47
48pub const OK_CANCELED: ReturnCode = 213;
50
51pub const OK_TABLE_SET: ReturnCode = 215;
53
54pub const OK_OUTPUT_MODULE_SET: ReturnCode = 216;
56
57pub const OK_PAUSE_CONTEXT_SET: ReturnCode = 217;
59
60pub const OK_VOLUME_SET: ReturnCode = 218;
62
63pub const OK_SSML_MODE_SET: ReturnCode = 219;
65
66pub const OK_NOTIFICATION_SET: ReturnCode = 220;
68
69pub const OK_CUR_SET_FIRST: ReturnCode = 220;
71
72pub const OK_CUR_SET_LAST: ReturnCode = 221;
74
75pub const OK_CUR_SET_POS: ReturnCode = 222;
77
78pub const OK_CUR_MOV_FOR: ReturnCode = 223;
80
81pub const OK_CUR_MOV_BACK: ReturnCode = 224;
83
84pub const OK_MESSAGE_QUEUED: ReturnCode = 225;
86
87pub const OK_SND_ICON_QUEUED: ReturnCode = 226;
89
90pub const OK_MSG_CANCELED: ReturnCode = 227;
92
93pub const OK_RECEIVING_DATA: ReturnCode = 230;
95
96pub const OK_BYE: ReturnCode = 231;
98
99pub const OK_CLIENTS_LIST_SENT: ReturnCode = 240;
101
102pub const OK_MSGS_LIST_SENT: ReturnCode = 241;
104
105pub const OK_LAST_MSG: ReturnCode = 242;
107
108pub const OK_CUR_POS_RET: ReturnCode = 243;
110
111pub const OK_TABLE_LIST_SENT: ReturnCode = 244;
113
114pub const OK_CLIENT_ID_SENT: ReturnCode = 245;
116
117pub const OK_MSG_TEXT_SENT: ReturnCode = 246;
119
120pub const OK_HELP_SENT: ReturnCode = 248;
122
123pub const OK_VOICES_LIST_SENT: ReturnCode = 249;
125
126pub const OK_OUTPUT_MODULES_LIST_SENT: ReturnCode = 250;
128
129pub const OK_GET: ReturnCode = 251;
131
132pub const OK_INSIDE_BLOCK: ReturnCode = 260;
134
135pub const OK_OUTSIDE_BLOCK: ReturnCode = 261;
137
138pub const OK_DEBUG_SET: ReturnCode = 262;
140
141pub const OK_PITCH_RANGE_SET: ReturnCode = 263;
143
144pub const OK_NOT_IMPLEMENTED: ReturnCode = 299;
146
147pub const ERR_INTERNAL: ReturnCode = 300;
149
150pub const ERR_COULDNT_SET_PRIORITY: ReturnCode = 301;
152
153pub const ERR_COULDNT_SET_LANGUAGE: ReturnCode = 302;
155
156pub const ERR_COULDNT_SET_RATE: ReturnCode = 303;
158
159pub const ERR_COULDNT_SET_PITCH: ReturnCode = 304;
161
162pub const ERR_COULDNT_SET_PUNCTUATION: ReturnCode = 305;
164
165pub const ERR_COULDNT_SET_CAP_LET_RECOG: ReturnCode = 306;
167
168pub const ERR_COULDNT_SET_SPELLING: ReturnCode = 308;
170
171pub const ERR_COULDNT_SET_VOICE: ReturnCode = 309;
173
174pub const ERR_COULDNT_SET_TABLE: ReturnCode = 310;
176
177pub const ERR_COULDNT_SET_CLIENT_NAME: ReturnCode = 311;
179
180pub const ERR_COULDNT_SET_OUTPUT_MODULE: ReturnCode = 312;
182
183pub const ERR_COULDNT_SET_PAUSE_CONTEXT: ReturnCode = 313;
185
186pub const ERR_COULDNT_SET_VOLUME: ReturnCode = 314;
188
189pub const ERR_COULDNT_SET_SSML_MODE: ReturnCode = 315;
191
192pub const ERR_COULDNT_SET_NOTIFICATION: ReturnCode = 316;
194
195pub const ERR_COULDNT_SET_DEBUG: ReturnCode = 317;
197
198pub const ERR_NO_SND_ICONS: ReturnCode = 320;
200
201pub const ERR_CANT_REPORT_VOICES: ReturnCode = 321;
203
204pub const ERR_NO_OUTPUT_MODULE: ReturnCode = 321;
206
207pub const ERR_ALREADY_INSIDE_BLOCK: ReturnCode = 330;
209
210pub const ERR_ALREADY_OUTSIDE_BLOCK: ReturnCode = 331;
212
213pub const ERR_NOT_ALLOWED_INSIDE_BLOCK: ReturnCode = 332;
215
216pub const ERR_COULDNT_SET_PITCH_RANGE: ReturnCode = 340;
218
219pub const ERR_NOT_IMPLEMENTED: ReturnCode = 380;
221
222pub const ERR_NO_CLIENT: ReturnCode = 401;
224
225pub const ERR_NO_SUCH_CLIENT: ReturnCode = 402;
227
228pub const ERR_NO_MESSAGE: ReturnCode = 403;
230
231pub const ERR_POS_LOW: ReturnCode = 404;
233
234pub const ERR_POS_HIGH: ReturnCode = 405;
236
237pub const ERR_ID_NOT_EXIST: ReturnCode = 406;
239
240pub const ERR_UNKNOWN_ICON: ReturnCode = 407;
242
243pub const ERR_UNKNOWN_PRIORITY: ReturnCode = 408;
245
246pub const ERR_RATE_TOO_HIGH: ReturnCode = 409;
248
249pub const ERR_RATE_TOO_LOW: ReturnCode = 410;
251
252pub const ERR_PITCH_TOO_HIGH: ReturnCode = 411;
254
255pub const ERR_PITCH_TOO_LOW: ReturnCode = 412;
257
258pub const ERR_VOLUME_TOO_HIGH: ReturnCode = 413;
260
261pub const ERR_VOLUME_TOO_LOW: ReturnCode = 414;
263
264pub const ERR_PITCH_RANGE_TOO_HIGH: ReturnCode = 415;
266
267pub const ERR_PITCH_RANGE_TOO_LOW: ReturnCode = 416;
269
270pub const ERR_INVALID_COMMAND: ReturnCode = 500;
272
273pub const ERR_INVALID_ENCODING: ReturnCode = 501;
275
276pub const ERR_MISSING_PARAMETER: ReturnCode = 510;
278
279pub const ERR_NOT_A_NUMBER: ReturnCode = 511;
281
282pub const ERR_NOT_A_STRING: ReturnCode = 512;
284
285pub const ERR_PARAMETER_NOT_ON_OFF: ReturnCode = 513;
287
288pub const ERR_PARAMETER_INVALID: ReturnCode = 514;
290
291pub const EVENT_INDEX_MARK: ReturnCode = 700;
293
294pub const EVENT_BEGIN: ReturnCode = 701;
296
297pub const EVENT_END: ReturnCode = 702;
299
300pub const EVENT_CANCELED: ReturnCode = 703;
302
303pub const EVENT_PAUSED: ReturnCode = 704;
305
306pub const EVENT_RESUMED: ReturnCode = 705;