opentimstdf 1.0.2

Rust reader for timsTOF .d/ (TDF) mass spectrometry bundles.
Documentation
use std::path::PathBuf;

use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("io: {0}")]
    Io(#[from] std::io::Error),
    #[error("sqlite: {0}")]
    Sqlite(#[from] rusqlite::Error),
    #[error("zstd: {0}")]
    Zstd(std::io::Error),
    #[error("unsupported codec: {0}")]
    UnsupportedCodec(String),
    #[error("bundle missing required file: {0}")]
    MissingFile(PathBuf),
    #[error("corrupt frame {0}: {1}")]
    CorruptFrame(u32, String),
}

pub type Result<T> = std::result::Result<T, Error>;