vmdk 0.1.0

Pure-Rust read-only VMware VMDK sparse disk image reader
Documentation
use thiserror::Error;

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

#[derive(Debug, Error)]
pub enum VmdkError {
    #[error("I/O error: {0}")]
    Io(#[from] std::io::Error),
    #[error("not a VMware VMDK file: bad magic number")]
    BadMagic,
    #[error("unsupported VMDK version: {0}")]
    UnsupportedVersion(u32),
    #[error("compressed VMDKs are not supported")]
    CompressedNotSupported,
    #[error("VMDK file too small")]
    FileTooSmall,
    #[error("invalid VMDK geometry: {0}")]
    InvalidGeometry(String),
    #[error("unsupported VMDK disk type: {0}")]
    UnsupportedDiskType(String),
}