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
//! Why the durable event log could not do something.
//!
//! Why: every fallible operation in `log/` — resolving the directory,
//! hardening it, opening or reading a day file — needs one error type callers
//! can match on, rather than each submodule inventing its own. Library code
//! (this crate is also linked as `trusty_console`, per `Cargo.toml`'s `[lib]`)
//! uses `thiserror`, not `anyhow`, per this repo's convention.
//! What: [`LogError`] covers directory resolution/hardening, file open/read/
//! write, and a malformed on-disk filename encountered during a directory
//! listing. Test: exercised indirectly by every `log::tests` case that opens
//! a [`super::DurableLog`] against an unwritable or malformed directory.
use PathBuf;
/// Errors the durable event log surface can return.
pub