tt_framework/
err.rs

1//!
2//! # Error Definition
3//!
4//! Self-descriptive error type, need NOT extra comments.
5//!
6
7#![allow(missing_docs)]
8
9pub const ERR_TT_UNKNOWN: i32 = -1;
10pub const ERR_TT_SYS_IO: i32 = -2;
11
12pub const ERR_TT_CREATE_VM: i32 = -50;
13pub const ERR_TT_DESTROY_VM: i32 = -51;
14pub const ERR_TT_START_VM: i32 = -52;
15pub const ERR_TT_STOP_VM: i32 = -53;
16pub const ERR_TT_UPDATE_VM: i32 = -54;
17
18pub const ERR_TT_META_CREATE_CACHE: i32 = -100;
19pub const ERR_TT_META_REMOVE_CACHE: i32 = -101;
20pub const ERR_TT_META_RESTORE_CACHE: i32 = -102;
21
22pub const ERR_TT_STORAGE_CREATE_IMAGE: i32 = -200;
23pub const ERR_TT_STORAGE_DESTROY_IMAGE: i32 = -201;
24
25pub const ERR_TT_FIREWALL_SET_NET: i32 = -300;
26pub const ERR_TT_FIREWALL_UNSET_NET: i32 = -301;
27pub const ERR_TT_FIREWALL_DENY_OUTGOING: i32 = -302;
28pub const ERR_TT_FIREWALL_ALLOW_OUTGOING: i32 = -303;
29pub const ERR_TT_FIREWALL_SET_OUTGOING_BLACKLIST: i32 = -303;
30
31pub const ERR_TT_SNAPSHOT_CREATE: i32 = -400;
32pub const ERR_TT_SNAPSHOT_DESTROY: i32 = -401;
33pub const ERR_TT_SNAPSHOT_APPLY: i32 = -402;