blob: 2b9ce1b858120472c85284da7209f63ed568c9ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#[derive(Debug, thiserror::Error)]
pub enum ChunkFailed {
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("Target policy not found")]
PolicyNotFound,
#[error("File read failed: {0}")]
FileReadFailed(std::path::PathBuf),
#[error("File open failed: {0}")]
FileOpenFailed(std::path::PathBuf),
#[error("Callback failed: {0}")]
CallbackFailed(String),
}
|