ewf-forensic 0.3.0

Forensic integrity analysis and repair for EWF (Expert Witness Format / E01) images
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt;

#[derive(Debug)]
pub enum EwfForensicError {
    TooShort { expected: usize, got: usize },
}

impl fmt::Display for EwfForensicError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            Self::TooShort { expected, got } => {
                write!(f, "data too short: expected {expected}, got {got}")
            }
        }
    }
}

impl std::error::Error for EwfForensicError {}