[−][src]Crate custom_codes
This are Custom Enum codes for memorable and uniform response codes. Enums are cheaper to compair than strings thereby guaranteeing efficiency.
use custom_codes::{DbOps, CustomBool}; fn dbop () -> DbOps { if db_insert() == true { DbOps::Inserted }else if db_insert() == false { DbOps::Skipped }else { DbOps::ConnRefused } }
Enums
| AccessStatus | Access status of token or access |
| ActivityInit | Initialize an activity |
| ActivityStatus | Status of an activity |
| Cli | Command Line Options |
| Compression | Compression of files, bytes or directories |
| CustomBool | Creates a custom |
| DateTimeOp | Date and time custom codes |
| DbOps | Custom Response Codes Using Enums For Efficient Comparison |
| ExecCommand | Command Operations for execution and |
| FileOps | File operations |
| HardwareResources | Hardware Resources of a physical computer |
| Networking | Networking Specific |
| Outcome | Give the Outcome of an operation |
| SecHardware | Hardware security access |
| SecOps | Security operations on encryption and keys |
| Subscription | Status of a subscription that happens over a timespec |