mirror of
https://github.com/TxtDot/dalet-rs.git
synced 2025-03-13 19:24:38 +03:00
27 lines
489 B
Rust
27 lines
489 B
Rust
use num_enum::TryFromPrimitive;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
|
pub enum DaletPackError {
|
|
StrMaxSizeExceeded,
|
|
ArrMaxSizeExceeded,
|
|
RootMaxSizeExceeded,
|
|
ZstdCompressError,
|
|
|
|
WriteNullBody,
|
|
WriteNullArgument,
|
|
}
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, TryFromPrimitive, Copy)]
|
|
#[repr(u8)]
|
|
pub enum TypeId {
|
|
Int8 = 1,
|
|
Str8 = 4,
|
|
Str16,
|
|
Str32,
|
|
TagArray,
|
|
TagArrayEnd,
|
|
TagId = 12,
|
|
TagIdBody,
|
|
TagIdArgument,
|
|
TagIdBodyArgument,
|
|
}
|