Enum opentimestamps::error::Error [] [src]

pub enum Error {
    StackOverflow,
    InvalidUriChar(char),
    BadDigestTag(u8),
    BadOpTag(u8),
    BadMagic(Vec<u8>),
    BadVersion(usize),
    BadLength {
        min: usize,
        max: usize,
        val: usize,
    },
    TrailingBytes,
    Utf8(FromUtf8Error),
    Io(Error),
}

Library-wide error structure

Variants

Recursed too deeply

A URI had a character we don't like

A digest type tag was not recognized

Decoded an op tag that we don't recognize

OTS file began with invalid magic bytes

OTS file has version we don't understand

A byte vector had an invalid length

Fields of BadLength

Expected EOF but didn't get it

UTF8

I/O error

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more