edirstat 2.0.1

A fast, cross-platform disk usage analyzer and deduplicator—with work-stealing multithreading, zero-copy snapshots, and an interactive treemap GUI.
Documentation
use thiserror::Error;

#[derive(Error, Debug)]
pub enum EdirstatError {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),

    #[error("File too small to contain header")]
    HeaderTooSmall,

    #[error("Invalid magic bytes in snapshot header")]
    InvalidMagic,

    #[error("Unsupported snapshot version: {0}")]
    UnsupportedVersion(u16),

    #[error("Truncated snapshot file; nodes missing")]
    TruncatedNodes,

    #[error("Truncated snapshot file; string pool missing")]
    TruncatedStringPool,
}