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
//! Top-level error type for the `BiBeam` core crate.
//!
//! [`enum@Error`] groups failures by class — config / crypto / transport /
//! protocol / storage / geoip / io — so downstream callers can match on the
//! cause without needing to know the precise sub-error type. Each variant
//! carries a human-readable string except [`Error::Io`], which re-wraps
//! [`std::io::Error`] losslessly via `#[from]`.
use Error;
/// Class-tagged error type for the core crate.
///
/// Higher layers convert their own error types into one of these classes
/// (typically `Crypto`, `Protocol`, or `Transport`) so the surface presented
/// to applications stays compact.