mirror of
https://github.com/TxtDot/dalet-rs.git
synced 2025-03-14 11:44:38 +03:00
28 lines
489 B
Rust
28 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,
|
||
|
}
|