1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
use crate::backup_run::BackupError;
use crate::chunk::ClientTrustError;
use crate::cipher::CipherError;
use crate::client::ClientError;
use crate::cmd::restore::RestoreError;
use crate::config::ClientConfigError;
use crate::db::DatabaseError;
use crate::dbgen::GenerationDbError;
use crate::generation::{LocalGenerationError, NascentError};
use crate::genlist::GenerationListError;
use crate::label::LabelError;
use crate::passwords::PasswordError;
use std::path::PathBuf;
use std::time::SystemTimeError;
use tempfile::PersistError;
#[derive(Debug, thiserror::Error)]
pub enum ObnamError {
#[error(transparent)]
Label(#[from] LabelError),
#[error(transparent)]
GenerationListError(#[from] GenerationListError),
#[error(transparent)]
ClientTrust(#[from] ClientTrustError),
#[error("couldn't save passwords to {0}: {1}")]
PasswordSave(PathBuf, PasswordError),
#[error(transparent)]
ClientError(#[from] ClientError),
#[error(transparent)]
ClientConfigError(#[from] ClientConfigError),
#[error(transparent)]
BackupError(#[from] BackupError),
#[error(transparent)]
NascentError(#[from] NascentError),
#[error(transparent)]
CipherError(#[from] CipherError),
#[error(transparent)]
LocalGenerationError(#[from] LocalGenerationError),
#[error(transparent)]
GenerationDb(#[from] GenerationDbError),
#[error(transparent)]
Database(#[from] DatabaseError),
#[error(transparent)]
RestoreError(#[from] RestoreError),
#[error(transparent)]
PersistError(#[from] PersistError),
#[error(transparent)]
IoError(#[from] std::io::Error),
#[error(transparent)]
SystemTimeError(#[from] SystemTimeError),
#[error(transparent)]
SerdeJsonError(#[from] serde_json::Error),
#[error(
"found CACHEDIR.TAG files that aren't present in the previous backup, might be an attack"
)]
NewCachedirTagsFound,
}