rushdb-types 3.0.3

Internal component of the RushDB server: value model, identifiers and encodings. No stable API; install rushdb-server instead.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

/// Errors produced while encoding, decoding or parsing canonical types.
#[derive(Debug, Clone, PartialEq, Eq, Error)]
pub enum TypesError {
    /// The scalar does not match the declared logical type.
    #[error("unencodable value for type {0:?}")]
    Unencodable(&'static str),
    /// A serialized logical type tag is not recognized.
    #[error("unknown logical type tag {0}")]
    UnknownTypeTag(u8),
    /// The input bytes do not form a valid encoded value.
    #[error("malformed key bytes")]
    MalformedKey,
}