1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub(crate) mod decode;

pub(crate) use self::decode::Encoding;

pub(crate) type InternalResult<T> = Result<T, InternalError>;

/// A recoverable error.
#[derive(Debug, Clone)]
pub(crate) enum InternalError {
    /// Found something unexpected, retry at the next byte.
    Retry,
    /// Found the end of file.
    Eof,
}