Module mkit::cbor [−][src]
Module implement simple and easy CBOR serialization.
Why use custom cbor implementation while there are off-the-self solutions ?
Because CBOR specification itself is open-ended, and custom implementation means, we can mold it to the needs of distributed apps.
Enums
Cbor | Cbor type enumerated over its major variants. |
Info | 5-bit value for additional info. Refer to Cbor spec for details. |
Key | Possible types that can be used as a key in cbor-map. |
SimpleValue | Major type 7, simple-value. Refer to Cbor spec for details. |
Tag | Major type 6, Tag values. Refer to Cbor spec for details. |
Constants
RECURSION_LIMIT | Recursion limit for nested Cbor objects. |
Traits
FromCbor | Convert from Cbor, the cbor value is typically obtained by decoding it from bytes. |
IntoCbor | Convert rust-native value to Cbor, which can then be encoded into bytes using Cbor. |